Skip to content

Commit 5c36403

Browse files
committed
💚 Update Build to publish to Maven Central
1 parent a5fd970 commit 5c36403

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

build.gradle.kts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,19 @@ plugins {
22
kotlin("jvm") version "2.2.0" apply false
33
kotlin("android") version "2.2.0" apply false
44
id("com.android.application") version "7.4.2" apply false
5+
id("com.gradleup.nmcp.aggregation").version("1.0.1")
56
}
7+
8+
nmcpAggregation {
9+
centralPortal {
10+
username.set(System.getenv("SONATYPE_USERNAME"))
11+
password.set(System.getenv("SONATYPE_PASSWORD"))
12+
publishingType = "USER_MANAGED"
13+
}
14+
}
15+
16+
dependencies {
17+
// Add all dependencies here
18+
nmcpAggregation(project(":kotest-runner-android"))
19+
}
20+

kotest-runner-android/build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ plugins {
33
id("org.jetbrains.dokka") version "1.9.10"
44
`maven-publish`
55
signing
6+
id("com.gradleup.nmcp")
67
}
78

8-
kotlin { jvmToolchain(11) }
9+
kotlin { jvmToolchain(17) }
910

1011
dependencies {
1112
api("junit:junit:4.13.2")

kotest-runner-android/kotest-runner-android-tests/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ plugins {
33
kotlin("android")
44
}
55

6-
kotlin { jvmToolchain(11) }
6+
kotlin { jvmToolchain(17) }
77

88
android {
99
namespace = "br.com.colman.kotest"
@@ -12,7 +12,7 @@ android {
1212
defaultConfig {
1313
applicationId = "br.com.colman.kotest"
1414
targetSdk = 33
15-
minSdk = 21
15+
minSdk = 26
1616
versionCode = 100
1717
versionName = "1.0.0"
1818

0 commit comments

Comments
 (0)