11plugins {
2- id(' java' )
3- id(' maven-publish' )
4- id(' com.gradleup.shadow' ) version(' 8.3.6' )
5- id(' signing' )
2+ id(" java" )
3+ id(" maven-publish" )
4+ id(" com.gradleup.shadow" ) version(" 8.3.6" )
5+ id(" signing" )
66}
77
8- group = ' io.github.jbock-java'
8+ group = " io.github.jbock-java"
99
1010compileJava {
11- options. encoding = ' UTF-8'
12- sourceCompatibility = ' 11 '
13- targetCompatibility = ' 11 '
11+ options. encoding = " UTF-8"
12+ sourceCompatibility = " 11 "
13+ targetCompatibility = " 11 "
1414}
1515
1616javadoc {
17- options. encoding = ' UTF-8'
17+ options. encoding = " UTF-8"
1818}
1919
2020repositories {
2121 mavenCentral()
2222}
2323
24- shadowJar {
25- minimize()
26- archiveClassifier. set(' ' )
27- }
28-
2924tasks. withType(AbstractArchiveTask ). configureEach {
3025 preserveFileTimestamps = false
3126 reproducibleFileOrder = true
@@ -37,33 +32,33 @@ tasks.withType(GenerateModuleMetadata).configureEach {
3732
3833shadowJar {
3934 minimize()
40- archiveClassifier. set(' ' )
41- relocate(' io.jbock.auto.common' , ' io.jbock.jbock.auto.common' )
42- relocate(' io.jbock.javapoet' , ' io.jbock.jbock.javapoet' )
35+ archiveClassifier. set(" " )
36+ relocate(" io.jbock.auto.common" , " io.jbock.jbock.auto.common" )
37+ relocate(" io.jbock.javapoet" , " io.jbock.jbock.javapoet" )
4338}
4439
4540dependencies {
46- def jbock = project(' :jbock' )
47- def simple_component = ' io.github.jbock-java:simple-component:1.024'
48- def javapoet = ' io.github.jbock-java:javapoet:1.15'
41+ def jbock = project(" :jbock" )
42+ def simple_component = " io.github.jbock-java:simple-component:1.024"
43+ def javapoet = " io.github.jbock-java:javapoet:1.15"
4944 implementation(javapoet)
50- implementation(' io.github.jbock-java:auto-common:1.2.3' )
45+ implementation(" io.github.jbock-java:auto-common:1.2.3" )
5146 shadow(jbock)
5247 compileOnly(simple_component)
53- annotationProcessor(' io.github.jbock-java:simple-component-compiler:1.024' )
54- testRuntimeOnly(' org.junit.platform:junit-platform-launcher' )
55- testImplementation(' io.github.jbock-java:compile-testing:0.19.12' )
56- testImplementation platform(' org.junit:junit-bom:5.12.2' )
57- testImplementation(' org.junit.jupiter:junit-jupiter' )
58- testImplementation(' org.mockito:mockito-core:5.16.1' )
48+ annotationProcessor(" io.github.jbock-java:simple-component-compiler:1.024" )
49+ testRuntimeOnly(" org.junit.platform:junit-platform-launcher" )
50+ testImplementation(" io.github.jbock-java:compile-testing:0.19.12" )
51+ testImplementation platform(" org.junit:junit-bom:5.12.2" )
52+ testImplementation(" org.junit.jupiter:junit-jupiter" )
53+ testImplementation(" org.mockito:mockito-core:5.16.1" )
5954 testImplementation(jbock)
6055 testImplementation(simple_component)
6156}
6257
6358jar {
6459 manifest {
6560 attributes(
66- ' Implementation-Version' : project. properties[' version' ]
61+ " Implementation-Version" : project. properties[" version" ]
6762 )
6863 }
6964}
@@ -72,14 +67,14 @@ test {
7267 useJUnitPlatform()
7368}
7469
75- tasks. register(' javadocJar' , Jar ) {
70+ tasks. register(" javadocJar" , Jar ) {
7671 from javadoc
77- archiveClassifier. set(' javadoc' )
72+ archiveClassifier. set(" javadoc" )
7873}
7974
80- tasks. register(' sourcesJar' , Jar ) {
75+ tasks. register(" sourcesJar" , Jar ) {
8176 from sourceSets. main. allJava
82- archiveClassifier. set(' sources' )
77+ archiveClassifier. set(" sources" )
8378}
8479
8580artifacts {
@@ -91,53 +86,53 @@ publishing {
9186 publications {
9287 shadow(MavenPublication ) { publication ->
9388 project. shadow. component(publication)
94- artifactId = ' jbock-compiler'
89+ artifactId = " jbock-compiler"
9590
9691 artifact sourcesJar
9792 artifact javadocJar
9893
9994 pom {
100- name = ' jbock-compiler'
101- packaging = ' jar'
102- description = ' jbock annotation processor'
103- url = ' https://github.com/jbock-java/jbock'
95+ name = " jbock-compiler"
96+ packaging = " jar"
97+ description = " jbock annotation processor"
98+ url = " https://github.com/jbock-java/jbock"
10499
105100 licenses {
106101 license {
107- name = ' MIT License'
108- url = ' https://opensource.org/licenses/MIT'
102+ name = " MIT License"
103+ url = " https://opensource.org/licenses/MIT"
109104 }
110105 }
111106 developers {
112107 developer {
113- id = ' Various'
114- name = ' Various'
115- email = ' jbock-java@gmx.de'
108+ id = " Various"
109+ name = " Various"
110+ email = " jbock-java@gmx.de"
116111 }
117112 }
118113 scm {
119- connection = ' scm:git:https://github.com/jbock-java/jbock.git'
120- developerConnection = ' scm:git:https://github.com/jbock-java/jbock.git'
121- url = ' https://github.com/jbock-java/jbock'
114+ connection = " scm:git:https://github.com/jbock-java/jbock.git"
115+ developerConnection = " scm:git:https://github.com/jbock-java/jbock.git"
116+ url = " https://github.com/jbock-java/jbock"
122117 }
123118 }
124119 }
125120 }
126121 repositories {
127122 maven {
128- url = ' https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/'
123+ url = " https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
129124 credentials {
130- username = System . getenv(' OSS_USER' )
131- password = System . getenv(' OSS_PASS' )
125+ username = System . getenv(" OSS_USER" )
126+ password = System . getenv(" OSS_PASS" )
132127 }
133128 }
134129 }
135130}
136131
137132// https://docs.gradle.org/current/userguide/signing_plugin.html
138133signing {
139- def signingKey = findProperty(' signingKey' )
140- def signingPassword = findProperty(' signingPassword' )
134+ def signingKey = findProperty(" signingKey" )
135+ def signingPassword = findProperty(" signingPassword" )
141136 useInMemoryPgpKeys(signingKey, signingPassword)
142137 sign publishing. publications. shadow
143138}
0 commit comments