File tree 5 files changed +18
-28
lines changed
5 files changed +18
-28
lines changed Original file line number Diff line number Diff line change @@ -7,16 +7,22 @@ buildscript {
7
7
classpath " org.shipkit:shipkit-changelog:1.2.0"
8
8
classpath " org.shipkit:shipkit-auto-version:1.2.2"
9
9
classpath " io.github.gradle-nexus:publish-plugin:1.3.0"
10
+ classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.20"
11
+ classpath " org.jetbrains.dokka:dokka-gradle-plugin:1.9.10"
10
12
}
11
13
}
12
14
15
+ apply plugin : ' org.gradle.base'
13
16
apply plugin : " io.github.gradle-nexus.publish-plugin"
14
17
apply plugin : ' org.shipkit.shipkit-auto-version'
15
18
apply plugin : " org.shipkit.shipkit-changelog"
16
19
apply plugin : " org.shipkit.shipkit-github-release"
17
20
18
- allprojects {
19
- group = ' org.mockito.kotlin'
21
+ def test = tasks. register(" test" ) {
22
+ dependsOn gradle. includedBuild(" tests" ). task(" :test" )
23
+ }
24
+ tasks. named(" check" ) {
25
+ dependsOn test
20
26
}
21
27
22
28
tasks. named(" generateChangelog" ) {
Original file line number Diff line number Diff line change @@ -5,34 +5,23 @@ apply plugin: 'kotlin'
5
5
apply from : ' ../gradle/publishing.gradle'
6
6
apply plugin : ' org.jetbrains.dokka'
7
7
8
- buildscript {
9
- ext. kotlin_version = " 1.9.20"
10
-
11
- repositories {
12
- mavenCentral()
13
- }
14
-
15
- dependencies {
16
- classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
17
- classpath " org.jetbrains.dokka:dokka-gradle-plugin:1.9.10"
18
- }
19
- }
8
+ group = ' org.mockito.kotlin'
20
9
21
10
repositories {
22
11
mavenCentral()
23
12
}
24
13
25
14
dependencies {
26
- compileOnly " org.jetbrains.kotlin:kotlin-stdlib: $k otlin_version "
15
+ compileOnly " org.jetbrains.kotlin:kotlin-stdlib"
27
16
compileOnly ' org.jetbrains.kotlinx:kotlinx-coroutines-core:1.0.0'
28
17
29
18
api " org.mockito:mockito-core:5.7.0"
30
19
31
20
testImplementation ' junit:junit:4.13.2'
32
21
testImplementation ' com.nhaarman:expect.kt:1.0.1'
33
22
34
- testImplementation " org.jetbrains.kotlin:kotlin-stdlib: $k otlin_version "
35
- testImplementation " org.jetbrains.kotlin:kotlin-test: $k otlin_version "
23
+ testImplementation " org.jetbrains.kotlin:kotlin-stdlib"
24
+ testImplementation " org.jetbrains.kotlin:kotlin-test"
36
25
testImplementation ' org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.0'
37
26
38
27
testImplementation " org.jetbrains.kotlinx:kotlinx-coroutines-android:1.0.0"
Original file line number Diff line number Diff line change 1
1
include ' mockito-kotlin'
2
- include ' tests'
2
+ includeBuild ' tests'
Original file line number Diff line number Diff line change @@ -2,13 +2,12 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2
2
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
3
3
4
4
buildscript {
5
- ext. kotlin_version = System . getenv(" KOTLIN_VERSION" ) ?: ' 1.9.20'
6
- println " $project uses Kotlin $kotlin_version "
7
-
8
5
repositories {
9
6
mavenCentral()
10
7
}
11
8
dependencies {
9
+ def kotlin_version = System . getenv(" KOTLIN_VERSION" ) ?: ' 1.9.20'
10
+ println " $project uses Kotlin $kotlin_version "
12
11
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
13
12
}
14
13
}
@@ -20,15 +19,10 @@ repositories {
20
19
mavenCentral()
21
20
}
22
21
23
- tasks. named(' compileTestKotlin' ) {
24
- dependsOn ' :mockito-kotlin:jar'
25
- }
26
-
27
22
dependencies {
28
- implementation files( " ${ rootProject.projectDir } / mockito- kotlin/build/libs/ mockito-kotlin- ${ version } .jar " )
23
+ implementation " org. mockito. kotlin: mockito-kotlin"
29
24
30
- implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
31
- implementation " org.mockito:mockito-core:5.7.0"
25
+ implementation " org.jetbrains.kotlin:kotlin-stdlib"
32
26
33
27
testImplementation ' junit:junit:4.13.2'
34
28
testImplementation " com.nhaarman:expect.kt:1.0.1"
Original file line number Diff line number Diff line change
1
+ includeBuild ' ..'
You can’t perform that action at this time.
0 commit comments