-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
115 lines (99 loc) · 2.93 KB
/
build.gradle
File metadata and controls
115 lines (99 loc) · 2.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
plugins {
id 'signing'
id 'maven-publish'
id 'java'
id 'org.jreleaser' version '1.23.0'
}
group 'ru.objectsfill'
version '0.1.4'
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compileOnly 'com.google.auto.service:auto-service:1.1.1'
annotationProcessor 'com.google.auto.service:auto-service:1.1.1'
implementation 'org.javassist:javassist:3.30.2-GA'
implementation 'org.apache.commons:commons-lang3:3.18.0'
testImplementation 'org.apache.commons:commons-lang3:3.18.0'
}
test {
useJUnitPlatform()
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
withSourcesJar()
withJavadocJar()
}
tasks.register('sourceJar', Jar) {
from sourceSets.main.allJava
archiveClassifier = "sources"
}
publishing {
publications {
maven(MavenPublication) {
groupId = 'ru.objectsfill'
artifactId = 'objects-fill-processor'
from components.java
pom {
name = 'objects-fill-processor'
description = 'Objects Fill Processor'
url = 'https://github.com/runafterasun/objects-fill-processor'
inceptionYear = '2026'
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id = 'Stereo'
name = 'Igor Saenko'
email = 'runafterasun@gmail.com' // укажите email
}
}
scm {
connection = 'scm:https://github.com/runafterasun/objects-fill-processor.git'
developerConnection = 'scm:git@github.com:runafterasun/objects-fill-processor.git'
url = 'https://github.com/runafterasun/java-xlsx'
}
}
}
}
repositories {
maven {
url = layout.buildDirectory.dir('staging-deploy')
}
}
}
jreleaser {
signing {
active = 'ALWAYS'
armored = true
mode = 'FILE'
passphrase = findProperty('signing.password') ?: ''
publicKey = findProperty('signing.publicKey') ?: ''
secretKey = findProperty('signing.secretKey') ?: ''
}
release {
github {
skipRelease = true
}
}
deploy {
maven {
mavenCentral {
sonatype {
active = 'ALWAYS'
url = 'https://central.sonatype.com/api/v1/publisher'
username = findProperty('ossrhUsername') ?: ''
password = findProperty('ossrhPassword') ?: ''
stagingRepository('build/staging-deploy')
}
}
}
}
}