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 {
|
||||
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
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