File tree Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ plugins {
3
3
id(" maven-publish" )
4
4
}
5
5
6
- group = " com.github.jsoberg "
7
- version = " 0.1 "
6
+ group = Publishing . GroupId
7
+ version = Publishing . Version
8
8
9
9
repositories {
10
10
mavenCentral()
@@ -25,4 +25,16 @@ dependencies {
25
25
26
26
tasks.withType<Test > {
27
27
useJUnitPlatform()
28
+ }
29
+
30
+ publishing {
31
+ publications {
32
+ create<MavenPublication >(" maven" ) {
33
+ artifactId = Publishing .ArtifactId
34
+ groupId = Publishing .GroupId
35
+ version = Publishing .Version
36
+
37
+ from(components[" java" ])
38
+ }
39
+ }
28
40
}
Original file line number Diff line number Diff line change
1
+ plugins {
2
+ `kotlin- dsl`
3
+ }
4
+
5
+ repositories {
6
+ mavenCentral()
7
+ }
Original file line number Diff line number Diff line change
1
+ object Publishing {
2
+ const val ArtifactId = " kotlin-aoc-api"
3
+ const val GroupId = " com.github.jsoberg"
4
+ const val Version = " 1.0"
5
+ }
You can’t perform that action at this time.
0 commit comments