Skip to content

Commit f7c809b

Browse files
committed
refactor: renamed module simple-serial to simple-serial-spring-boot-starter and removed build scripts in root build.gradle.kts
1 parent e6d8d78 commit f7c809b

File tree

19 files changed

+365
-107
lines changed

19 files changed

+365
-107
lines changed

build.gradle.kts

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -13,45 +13,4 @@
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+
*/

devkit-core/build.gradle.kts

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@
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

2025
val artefactVersion: String by project
2126
val projectUrl: String by project
@@ -26,13 +31,37 @@ val licenseUrl: String by project
2631
group = "com.onixbyte"
2732
version = artefactVersion
2833

34+
repositories {
35+
mavenCentral()
36+
}
37+
2938
java {
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+
3665
tasks.test {
3766
useJUnitPlatform()
3867
}

devkit-utils/build.gradle.kts

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@
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

2025
val artefactVersion: String by project
2126
val projectUrl: String by project
@@ -26,8 +31,8 @@ val licenseUrl: String by project
2631
group = "com.onixbyte"
2732
version = artefactVersion
2833

29-
dependencies {
30-
implementation(project(":devkit-core"))
34+
repositories {
35+
mavenCentral()
3136
}
3237

3338
java {
@@ -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+
4066
tasks.test {
4167
useJUnitPlatform()
4268
}

guid/build.gradle.kts

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@
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

2025
val artefactVersion: String by project
2126
val projectUrl: String by project
@@ -26,8 +31,8 @@ val licenseUrl: String by project
2631
group = "com.onixbyte"
2732
version = artefactVersion
2833

29-
dependencies {
30-
implementation(project(":devkit-core"))
34+
repositories {
35+
mavenCentral()
3136
}
3237

3338
java {
@@ -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+
4066
tasks.test {
4167
useJUnitPlatform()
4268
}

key-pair-loader/build.gradle.kts

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@
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

2024
val artefactVersion: String by project
2125
val projectUrl: String by project
@@ -26,8 +30,8 @@ val licenseUrl: String by project
2630
group = "com.onixbyte"
2731
version = artefactVersion
2832

29-
dependencies {
30-
implementation(project(":devkit-core"))
33+
repositories {
34+
mavenCentral()
3135
}
3236

3337
java {
@@ -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+
4065
tasks.test {
4166
useJUnitPlatform()
4267
}

map-util-unsafe/build.gradle.kts

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@
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

2024
val artefactVersion: String by project
2125
val projectUrl: String by project
@@ -26,8 +30,8 @@ val licenseUrl: String by project
2630
group = "com.onixbyte"
2731
version = artefactVersion
2832

29-
dependencies {
30-
implementation(project(":devkit-core"))
33+
repositories {
34+
mavenCentral()
3135
}
3236

3337
java {
@@ -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+
4065
tasks.test {
4166
useJUnitPlatform()
4267
}

num4j/build.gradle.kts

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@
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

2024
val artefactVersion: String by project
2125
val projectUrl: String by project
@@ -26,8 +30,8 @@ val licenseUrl: String by project
2630
group = "com.onixbyte"
2731
version = artefactVersion
2832

29-
dependencies {
30-
implementation(project(":devkit-core"))
33+
repositories {
34+
mavenCentral()
3135
}
3236

3337
java {
@@ -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+
4065
tasks.test {
4166
useJUnitPlatform()
4267
}

0 commit comments

Comments
 (0)