Merge pull request #2304 from open-osrs/jitpack

gradle: fix jitpack publishing
This commit is contained in:
Tyler Bochard
2020-02-01 19:42:12 -05:00
committed by GitHub
2 changed files with 10 additions and 2 deletions

View File

@@ -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
View File

@@ -0,0 +1,6 @@
jdk:
- openjdk11
install:
- echo "Welcome to OpenOSRS JitPack"
- chmod a+x ./gradlew
- ./gradlew build publishToMavenLocal -x test