Skip to content

Commit 81fe26b

Browse files
committed
Modernize build
1 parent b576e22 commit 81fe26b

File tree

3 files changed

+10
-25
lines changed

3 files changed

+10
-25
lines changed

build.gradle

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,49 +2,34 @@ apply plugin: "com.github.ben-manes.versions"
22

33
buildscript {
44
ext {
5-
kotlin_version = '1.5.10'
5+
kotlin_version = '1.9.20'
66
}
77

88
repositories {
99
jcenter()
10+
gradlePluginPortal()
1011
}
1112

1213
dependencies {
1314
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
14-
classpath 'com.github.ben-manes:gradle-versions-plugin:0.33.0'
15+
classpath 'com.github.ben-manes:gradle-versions-plugin:0.50.0'
1516
}
1617
}
1718

1819
allprojects {
20+
1921
repositories {
2022
jcenter()
2123
maven { url 'https://jitpack.io' }
2224
}
2325

24-
2526
apply plugin: "kotlin"
2627
apply plugin: "jacoco"
27-
apply plugin: "maven"
28+
apply plugin: "maven-publish"
2829

29-
dependencies {
30-
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
31-
32-
testCompile 'org.assertj:assertj-core:3.14.0'
33-
testCompile 'junit:junit:4.12'
30+
java {
31+
withJavadocJar()
32+
withSourcesJar()
3433
}
3534

36-
task sourcesJar(type: Jar, dependsOn: classes) {
37-
classifier = 'sources'
38-
from sourceSets.main.allSource
39-
}
40-
41-
task javadocJar(type: Jar, dependsOn: javadoc) {
42-
classifier = 'javadoc'
43-
from javadoc.destinationDir
44-
}
45-
46-
artifacts {
47-
archives sourcesJar
48-
archives javadocJar
49-
}
5035
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6.1-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

model/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dependencies {
2-
compile 'org.threeten:threetenbp:1.5.1'
2+
implementation 'org.threeten:threetenbp:1.4.4'
33
}
44

55

0 commit comments

Comments
 (0)