1+ import com.vanniktech.maven.publish.SonatypeHost
2+
13plugins {
24 id ' java'
3- id ' maven-publish'
4- id ' signing'
55 id ' checkstyle'
6- id ' com.diffplug.spotless' version ' 6.17.0'
7- id ' com.github.spotbugs' version ' 5.0.14'
8- id ' com.github.ben-manes.versions' version ' 0.46.0'
6+ id ' com.vanniktech.maven.publish' version ' 0.32.0'
7+ id ' com.diffplug.spotless' version ' 7.0.4'
8+ id ' com.github.spotbugs' version ' 6.1.13'
9+ id ' com.github.ben-manes.versions' version ' 0.52.0'
910}
1011
1112group ' com.formkiq'
12- version ' 1.4.2 '
13+ version ' 1.5.0 '
1314
1415dependencies {
15- annotationProcessor group : ' com.google.auto.service' , name : ' auto-service' , version : ' 1.0 .1'
16- compileOnly group : ' com.google.auto.service' , name : ' auto-service' , version : ' 1.0 .1'
17- compileOnly group : ' com.google.auto.service' , name : ' auto-service-annotations' , version : ' 1.0 .1'
16+ annotationProcessor group : ' com.google.auto.service' , name : ' auto-service' , version : ' 1.1 .1'
17+ compileOnly group : ' com.google.auto.service' , name : ' auto-service' , version : ' 1.1 .1'
18+ compileOnly group : ' com.google.auto.service' , name : ' auto-service-annotations' , version : ' 1.1 .1'
1819
1920 implementation group : ' com.formkiq' , name : ' graalvm-annotations' , version : ' 1.2.0'
20- implementation group : ' com.google.code.gson' , name : ' gson' , version : ' 2.10 .1'
21+ implementation group : ' com.google.code.gson' , name : ' gson' , version : ' 2.13 .1'
2122 testImplementation group : ' junit' , name : ' junit' , version :' 4.+'
2223 testImplementation group : ' com.google.testing.compile' , name : ' compile-testing' , version : ' 0.21.0'
2324}
@@ -27,114 +28,73 @@ compileJava {
2728}
2829
2930spotless {
30- java {
31- googleJavaFormat()
32- }
31+ java {
32+ eclipse(). configFile project. rootProject. file(" spotless.eclipseformat.xml" )
33+ licenseHeaderFile project. rootProject. file(" LICENSE_SHORT" )
34+ }
3335}
3436
3537spotbugs {
3638 excludeFilter = file(" $rootDir /config/gradle/spotbugs-exclude.xml" )
3739}
38-
40+
3941spotbugsMain {
40- reports {
41- html {
42- enabled = true
42+ reports {
43+ html {
44+ required. set(true )
45+ }
4346 }
44- }
4547}
4648
4749checkstyle {
48- toolVersion ' 8.29 '
49- configFile file(" config/checkstyle/checkstyle.xml" )
50- configProperties = [project_loc : " ${ projectDir} " ]
51- ignoreFailures = false
52- maxWarnings = 0
50+ toolVersion = ' 10.12.1 '
51+ configFile file(" config/checkstyle/checkstyle.xml" )
52+ configProperties = [project_loc : " ${ projectDir} " ]
53+ maxWarnings = 0
54+ maxErrors = 0
5355}
5456
5557repositories {
5658 mavenLocal()
5759 mavenCentral()
5860}
5961
60- check {
61- dependsOn(tasks. publishToMavenLocal)
62- }
63-
6462java {
65- withJavadocJar()
66- withSourcesJar()
67-
6863 toolchain {
69- languageVersion. set(JavaLanguageVersion . of(11 ))
64+ languageVersion. set(JavaLanguageVersion . of(17 ))
7065 }
7166}
7267
73- javadoc {
74- if (JavaVersion . current(). isJava9Compatible()) {
75- options. addBooleanOption(' html5' , true )
76- }
77- }
78-
79- artifacts {
80- archives jar
81-
82- archives javadocJar
83- archives sourcesJar
84- }
68+ mavenPublishing {
8569
86- afterEvaluate {
87- tasks. getByName(' spotlessCheck' ). dependsOn(tasks. getByName(' spotlessApply' ))
88- }
70+ publishToMavenCentral(SonatypeHost . CENTRAL_PORTAL )
71+ signAllPublications()
8972
90- publishing {
91- publications {
92- mavenJava(MavenPublication ) {
93- from components. java
94-
95- pom {
96- name = ' FormKiQ Lambda Runtime Graalvm Annotations'
97- description = ' Lambda Runtime Graalvm Annotations'
98- url = ' https://github.com/formkiq/graalvm-annotations-processor'
99- licenses {
100- license {
101- name = ' The Apache License, Version 2.0'
102- url = ' http://www.apache.org/licenses/LICENSE-2.0.txt'
103- }
104- }
105- developers {
106- developer {
107- id = ' mfriesen'
108- name = ' Mike Friesen'
109- email = ' mike@formkiq.com'
110- }
111- }
112- scm {
113- connection = ' scm:git:git://github.com/formkiq/graalvm-annotations-processor.git'
114- developerConnection = ' scm:git:ssh://github.com/formkiq/graalvm-annotations-processor.git'
115- url = ' https://github.com/formkiq/graalvm-annotations-processor.git'
116- }
73+ pom {
74+ name = " FormKiQ Lambda Runtime Graalvm"
75+ description = " Lambda Runtime Graalvm"
76+ inceptionYear = " 2020"
77+ url = " https://github.com/formkiq/lambda-runtime-graalvm"
78+ licenses {
79+ license {
80+ name = " The Apache License, Version 2.0"
81+ url = " http://www.apache.org/licenses/LICENSE-2.0.txt"
82+ distribution = " http://www.apache.org/licenses/LICENSE-2.0.txt"
11783 }
118- }
119- }
120- repositories {
121- maven {
122- credentials {
123- username project. repoUser
124- password project. repoPassword
125- }
126- url " https://oss.sonatype.org/service/local/staging/deploy/maven2/"
127- // url "https://oss.sonatype.org/content/repositories/snapshots/"
128- }
129- }
130- }
131-
132- signing {
133- sign publishing. publications. mavenJava
134- }
135-
136- check {
137- dependsOn(tasks. publishToMavenLocal)
84+ }
85+ developers {
86+ developer {
87+ id = ' mfriesen'
88+ name = ' Mike Friesen'
89+ }
90+ }
91+ scm {
92+ url = ' https://github.com/formkiq/lambda-runtime-graalvm.git'
93+ connection = ' scm:git:git://github.com/formkiq/lambda-runtime-graalvm.git'
94+ developerConnection = ' scm:git:ssh://github.com/formkiq/lambda-runtime-graalvm.git'
95+ }
96+ }
13897}
13998
140- spotlessJavaCheck. dependsOn spotlessJavaApply
99+ compileJava. dependsOn(tasks. spotlessApply)
100+ check. dependsOn(tasks. publishToMavenLocal)
0 commit comments