Skip to content

Commit aa13efa

Browse files
committed
prep for jitpack
1 parent 6f3ad4e commit aa13efa

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package buildsrc.convention
2+
3+
plugins {
4+
`maven-publish`
5+
}
6+
7+
plugins.withType(JavaPlugin::class.java) {
8+
publishing {
9+
publications {
10+
create<MavenPublication>("mavenJava") {
11+
from(components["java"])
12+
}
13+
}
14+
}
15+
}
16+
17+
tasks
18+
.matching { it.name in listOf("publish", "publishToMavenLocal") }
19+
.configureEach {
20+
doLast {
21+
logger.lifecycle("[${this.name}] ${project.group}:${project.name}:${project.version}")
22+
}
23+
}

jitpack.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# https://jitpack.io/docs/BUILDING/
2+
3+
# https://jitpack.io/docs/BUILDING/#java-version
4+
jdk:
5+
- openjdk11

0 commit comments

Comments
 (0)