Skip to content

Commit 6f5feae

Browse files
committed
add maven publication and update gradle
1 parent 891ebe4 commit 6f5feae

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

build.gradle.kts

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
kotlin("jvm") version "1.5.31"
3+
id("com.github.johnrengelman.shadow") version "7.1.0"
34
`maven-publish`
45
}
56

@@ -19,4 +20,27 @@ dependencies {
1920
implementation("io.ktor:ktor-client-core:$ktorVersion")
2021
implementation("io.ktor:ktor-client-apache:$ktorVersion")
2122
implementation("io.ktor:ktor-client-gson:$ktorVersion")
22-
}
23+
}
24+
25+
tasks {
26+
shadowJar {
27+
archiveBaseName.set("launchwrapper")
28+
archiveClassifier.set("")
29+
30+
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
31+
}
32+
33+
publishing {
34+
publications {
35+
create<MavenPublication>("maven") {
36+
groupId = "org.bundleproject"
37+
artifactId = "launchwrapper"
38+
version = project.version as String
39+
40+
artifact(shadowJar) {
41+
builtBy(shadowJar)
42+
}
43+
}
44+
}
45+
}
46+
}
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-7.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)