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 {
group = "com.openosrs"
version = ProjectVersions.rlVersion
apply<MavenPublishPlugin>()
}
subprojects {
repositories {
//mavenLocal()
if (System.getenv("JITPACK") != null)
mavenLocal()
jcenter()
maven(url = "https://mvnrepository.com/artifact")
maven(url = "https://repo.runelite.net")
@@ -72,7 +74,7 @@ subprojects {
}
apply<JavaLibraryPlugin>()
apply<MavenPublishPlugin>()
//apply<MavenPublishPlugin>()
apply(plugin = Plugins.testLogger.first)
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