File tree Expand file tree Collapse file tree 19 files changed +365
-107
lines changed
property-guard-spring-boot-starter
simple-jwt-spring-boot-starter
simple-serial-spring-boot-starter Expand file tree Collapse file tree 19 files changed +365
-107
lines changed Original file line number Diff line number Diff line change 1313 *
1414 * See the License for the specific language governing permissions and
1515 * limitations under the License.
16- */
17-
18- val logbackVersion: String by project
19- val junitVersion: String by project
20- val slf4jVersion: String by project
21- val lombokVersion: String by project
22-
23- subprojects {
24- apply (plugin = " java" )
25- apply (plugin = " java-library" )
26- apply (plugin = " maven-publish" )
27- apply (plugin = " signing" )
28-
29- val implementation by configurations
30- val testImplementation by configurations
31- val compileOnly by configurations
32- val annotationProcessor by configurations
33- val testAnnotationProcessor by configurations
34- val testCompileOnly by configurations
35-
36- tasks.withType<Jar > {
37- exclude(" logback.xml" )
38- }
39-
40- repositories {
41- mavenCentral()
42- }
43-
44- dependencies {
45- compileOnly(" org.slf4j:slf4j-api:$slf4jVersion " )
46- implementation(" ch.qos.logback:logback-classic:$logbackVersion " )
47- annotationProcessor(" org.slf4j:slf4j-api:$slf4jVersion " )
48-
49- testCompileOnly(" org.slf4j:slf4j-api:$slf4jVersion " )
50- testImplementation(" org.junit.jupiter:junit-jupiter:$junitVersion " )
51- testAnnotationProcessor(" org.slf4j:slf4j-api:$slf4jVersion " )
52- }
53-
54- tasks.withType<JavaCompile > {
55- options.encoding = " UTF-8"
56- }
57- }
16+ */
Original file line number Diff line number Diff line change 1515 * limitations under the License.
1616 */
1717
18- import java.net.URI
18+ plugins {
19+ java
20+ id(" java-library" )
21+ id(" maven-publish" )
22+ id(" signing" )
23+ }
1924
2025val artefactVersion: String by project
2126val projectUrl: String by project
@@ -26,13 +31,37 @@ val licenseUrl: String by project
2631group = " com.onixbyte"
2732version = artefactVersion
2833
34+ repositories {
35+ mavenCentral()
36+ }
37+
2938java {
3039 sourceCompatibility = JavaVersion .VERSION_17
3140 targetCompatibility = JavaVersion .VERSION_17
3241 withSourcesJar()
3342 withJavadocJar()
3443}
3544
45+ tasks.withType<JavaCompile > {
46+ options.encoding = " UTF-8"
47+ }
48+
49+ tasks.withType<Jar > {
50+ exclude(" logback.xml" )
51+ }
52+
53+ dependencies {
54+ val slf4jVersion: String by project
55+ val logbackVersion: String by project
56+ val junitVersion: String by project
57+
58+ compileOnly(" org.slf4j:slf4j-api:$slf4jVersion " )
59+ implementation(" ch.qos.logback:logback-classic:$logbackVersion " )
60+
61+ testCompileOnly(" org.slf4j:slf4j-api:$slf4jVersion " )
62+ testImplementation(" org.junit.jupiter:junit-jupiter:$junitVersion " )
63+ }
64+
3665tasks.test {
3766 useJUnitPlatform()
3867}
Original file line number Diff line number Diff line change 1515 * limitations under the License.
1616 */
1717
18- import java.net.URI
18+ plugins {
19+ java
20+ id(" java-library" )
21+ id(" maven-publish" )
22+ id(" signing" )
23+ }
1924
2025val artefactVersion: String by project
2126val projectUrl: String by project
@@ -26,8 +31,8 @@ val licenseUrl: String by project
2631group = " com.onixbyte"
2732version = artefactVersion
2833
29- dependencies {
30- implementation(project( " :devkit-core " ) )
34+ repositories {
35+ mavenCentral( )
3136}
3237
3338java {
@@ -37,6 +42,27 @@ java {
3742 withJavadocJar()
3843}
3944
45+ tasks.withType<JavaCompile > {
46+ options.encoding = " UTF-8"
47+ }
48+
49+ tasks.withType<Jar > {
50+ exclude(" logback.xml" )
51+ }
52+
53+ dependencies {
54+ val slf4jVersion: String by project
55+ val logbackVersion: String by project
56+ val junitVersion: String by project
57+
58+ compileOnly(" org.slf4j:slf4j-api:$slf4jVersion " )
59+ implementation(" ch.qos.logback:logback-classic:$logbackVersion " )
60+ implementation(project(" :devkit-core" ))
61+
62+ testCompileOnly(" org.slf4j:slf4j-api:$slf4jVersion " )
63+ testImplementation(" org.junit.jupiter:junit-jupiter:$junitVersion " )
64+ }
65+
4066tasks.test {
4167 useJUnitPlatform()
4268}
Original file line number Diff line number Diff line change 1515 * limitations under the License.
1616 */
1717
18- import java.net.URI
18+ plugins {
19+ java
20+ id(" java-library" )
21+ id(" maven-publish" )
22+ id(" signing" )
23+ }
1924
2025val artefactVersion: String by project
2126val projectUrl: String by project
@@ -26,8 +31,8 @@ val licenseUrl: String by project
2631group = " com.onixbyte"
2732version = artefactVersion
2833
29- dependencies {
30- implementation(project( " :devkit-core " ) )
34+ repositories {
35+ mavenCentral( )
3136}
3237
3338java {
@@ -37,6 +42,27 @@ java {
3742 withJavadocJar()
3843}
3944
45+ tasks.withType<JavaCompile > {
46+ options.encoding = " UTF-8"
47+ }
48+
49+ tasks.withType<Jar > {
50+ exclude(" logback.xml" )
51+ }
52+
53+ dependencies {
54+ val slf4jVersion: String by project
55+ val logbackVersion: String by project
56+ val junitVersion: String by project
57+
58+ compileOnly(" org.slf4j:slf4j-api:$slf4jVersion " )
59+ implementation(" ch.qos.logback:logback-classic:$logbackVersion " )
60+ implementation(project(" :devkit-core" ))
61+
62+ testCompileOnly(" org.slf4j:slf4j-api:$slf4jVersion " )
63+ testImplementation(" org.junit.jupiter:junit-jupiter:$junitVersion " )
64+ }
65+
4066tasks.test {
4167 useJUnitPlatform()
4268}
Original file line number Diff line number Diff line change 1414 * See the License for the specific language governing permissions and
1515 * limitations under the License.
1616 */
17-
18- import java.net.URI
17+ plugins {
18+ java
19+ id(" java-library" )
20+ id(" maven-publish" )
21+ id(" signing" )
22+ }
1923
2024val artefactVersion: String by project
2125val projectUrl: String by project
@@ -26,8 +30,8 @@ val licenseUrl: String by project
2630group = " com.onixbyte"
2731version = artefactVersion
2832
29- dependencies {
30- implementation(project( " :devkit-core " ) )
33+ repositories {
34+ mavenCentral( )
3135}
3236
3337java {
@@ -37,6 +41,27 @@ java {
3741 withJavadocJar()
3842}
3943
44+ tasks.withType<JavaCompile > {
45+ options.encoding = " UTF-8"
46+ }
47+
48+ tasks.withType<Jar > {
49+ exclude(" logback.xml" )
50+ }
51+
52+ dependencies {
53+ val slf4jVersion: String by project
54+ val logbackVersion: String by project
55+ val junitVersion: String by project
56+
57+ compileOnly(" org.slf4j:slf4j-api:$slf4jVersion " )
58+ implementation(" ch.qos.logback:logback-classic:$logbackVersion " )
59+ implementation(project(" :devkit-core" ))
60+
61+ testCompileOnly(" org.slf4j:slf4j-api:$slf4jVersion " )
62+ testImplementation(" org.junit.jupiter:junit-jupiter:$junitVersion " )
63+ }
64+
4065tasks.test {
4166 useJUnitPlatform()
4267}
Original file line number Diff line number Diff line change 1414 * See the License for the specific language governing permissions and
1515 * limitations under the License.
1616 */
17-
18- import java.net.URI
17+ plugins {
18+ java
19+ id(" java-library" )
20+ id(" maven-publish" )
21+ id(" signing" )
22+ }
1923
2024val artefactVersion: String by project
2125val projectUrl: String by project
@@ -26,8 +30,8 @@ val licenseUrl: String by project
2630group = " com.onixbyte"
2731version = artefactVersion
2832
29- dependencies {
30- implementation(project( " :devkit-core " ) )
33+ repositories {
34+ mavenCentral( )
3135}
3236
3337java {
@@ -37,6 +41,27 @@ java {
3741 withJavadocJar()
3842}
3943
44+ tasks.withType<JavaCompile > {
45+ options.encoding = " UTF-8"
46+ }
47+
48+ tasks.withType<Jar > {
49+ exclude(" logback.xml" )
50+ }
51+
52+ dependencies {
53+ val slf4jVersion: String by project
54+ val logbackVersion: String by project
55+ val junitVersion: String by project
56+
57+ compileOnly(" org.slf4j:slf4j-api:$slf4jVersion " )
58+ implementation(" ch.qos.logback:logback-classic:$logbackVersion " )
59+ implementation(project(" :devkit-core" ))
60+
61+ testCompileOnly(" org.slf4j:slf4j-api:$slf4jVersion " )
62+ testImplementation(" org.junit.jupiter:junit-jupiter:$junitVersion " )
63+ }
64+
4065tasks.test {
4166 useJUnitPlatform()
4267}
Original file line number Diff line number Diff line change 1414 * See the License for the specific language governing permissions and
1515 * limitations under the License.
1616 */
17-
18- import java.net.URI
17+ plugins {
18+ java
19+ id(" java-library" )
20+ id(" maven-publish" )
21+ id(" signing" )
22+ }
1923
2024val artefactVersion: String by project
2125val projectUrl: String by project
@@ -26,8 +30,8 @@ val licenseUrl: String by project
2630group = " com.onixbyte"
2731version = artefactVersion
2832
29- dependencies {
30- implementation(project( " :devkit-core " ) )
33+ repositories {
34+ mavenCentral( )
3135}
3236
3337java {
@@ -37,6 +41,27 @@ java {
3741 withJavadocJar()
3842}
3943
44+ tasks.withType<JavaCompile > {
45+ options.encoding = " UTF-8"
46+ }
47+
48+ tasks.withType<Jar > {
49+ exclude(" logback.xml" )
50+ }
51+
52+ dependencies {
53+ val slf4jVersion: String by project
54+ val logbackVersion: String by project
55+ val junitVersion: String by project
56+
57+ compileOnly(" org.slf4j:slf4j-api:$slf4jVersion " )
58+ implementation(" ch.qos.logback:logback-classic:$logbackVersion " )
59+ implementation(project(" :devkit-core" ))
60+
61+ testCompileOnly(" org.slf4j:slf4j-api:$slf4jVersion " )
62+ testImplementation(" org.junit.jupiter:junit-jupiter:$junitVersion " )
63+ }
64+
4065tasks.test {
4166 useJUnitPlatform()
4267}
You can’t perform that action at this time.
0 commit comments