Skip to content

Commit 11306ec

Browse files
committed
Test making BlueMapCommon and BlueMapCore available to jitpack
1 parent 1368f86 commit 11306ec

File tree

3 files changed

+29
-1
lines changed

3 files changed

+29
-1
lines changed

BlueMapCommon/build.gradle.kts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import java.io.IOException
44
plugins {
55
java
66
`java-library`
7+
`maven-publish`
78
id("com.diffplug.spotless") version "6.1.2"
89
id ("com.github.node-gradle.node") version "3.0.1"
910
}
@@ -96,3 +97,15 @@ tasks.register("zipWebapp", type = Zip::class) {
9697
tasks.processResources {
9798
dependsOn("zipWebapp")
9899
}
100+
101+
publishing {
102+
publications {
103+
create<MavenPublication>("maven") {
104+
groupId = project.group.toString()
105+
artifactId = project.name
106+
version = project.version.toString()
107+
108+
from(components["java"])
109+
}
110+
}
111+
}

BlueMapCore/build.gradle.kts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import java.io.IOException
33
plugins {
44
java
55
`java-library`
6+
`maven-publish`
67
id("com.diffplug.spotless") version "6.1.2"
78
}
89

@@ -131,4 +132,16 @@ fun zipResourcesTask(resourceId: String) {
131132
//always update the zip before build
132133
tasks.processResources {
133134
dependsOn("zipResourceExtensions")
134-
}
135+
}
136+
137+
publishing {
138+
publications {
139+
create<MavenPublication>("maven") {
140+
groupId = project.group.toString()
141+
artifactId = project.name
142+
version = project.version.toString()
143+
144+
from(components["java"])
145+
}
146+
}
147+
}

jitpack.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
jdk:
2+
- openjdk11

0 commit comments

Comments
 (0)