Merge pull request #2304 from open-osrs/jitpack
gradle: fix jitpack publishing
This commit is contained in:
@@ -59,11 +59,13 @@ fun isNonStable(version: String): Boolean {
|
|||||||
allprojects {
|
allprojects {
|
||||||
group = "com.openosrs"
|
group = "com.openosrs"
|
||||||
version = ProjectVersions.rlVersion
|
version = ProjectVersions.rlVersion
|
||||||
|
apply<MavenPublishPlugin>()
|
||||||
}
|
}
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
repositories {
|
repositories {
|
||||||
//mavenLocal()
|
if (System.getenv("JITPACK") != null)
|
||||||
|
mavenLocal()
|
||||||
jcenter()
|
jcenter()
|
||||||
maven(url = "https://mvnrepository.com/artifact")
|
maven(url = "https://mvnrepository.com/artifact")
|
||||||
maven(url = "https://repo.runelite.net")
|
maven(url = "https://repo.runelite.net")
|
||||||
@@ -72,7 +74,7 @@ subprojects {
|
|||||||
}
|
}
|
||||||
|
|
||||||
apply<JavaLibraryPlugin>()
|
apply<JavaLibraryPlugin>()
|
||||||
apply<MavenPublishPlugin>()
|
//apply<MavenPublishPlugin>()
|
||||||
apply(plugin = Plugins.testLogger.first)
|
apply(plugin = Plugins.testLogger.first)
|
||||||
|
|
||||||
project.extra["gitCommit"] = localGitCommit
|
project.extra["gitCommit"] = localGitCommit
|
||||||
|
|||||||
6
jitpack.yml
Normal file
6
jitpack.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
jdk:
|
||||||
|
- openjdk11
|
||||||
|
install:
|
||||||
|
- echo "Welcome to OpenOSRS JitPack"
|
||||||
|
- chmod a+x ./gradlew
|
||||||
|
- ./gradlew build publishToMavenLocal -x test
|
||||||
Reference in New Issue
Block a user