This commit is contained in:
Anuken
2021-09-14 09:55:35 -04:00
parent e1ba9f16f6
commit 01c67b77cb
2 changed files with 9 additions and 10 deletions
+7 -2
View File
@@ -18,6 +18,12 @@ configurations{ natives }
repositories{ repositories{
mavenCentral() mavenCentral()
maven{ url "https://maven.google.com" } maven{ url "https://maven.google.com" }
ivy{
url 'https://github.com/'
patternLayout{ artifact '/[organisation]/[module]/raw/master/backends/backend-android/libs/android.jar' }
metadataSources{ artifact() }
}
} }
task deploy(type: Copy){ task deploy(type: Copy){
@@ -140,8 +146,7 @@ dependencies{
gpImplementation "com.google.android.gms:play-services-auth:19.0.0" gpImplementation "com.google.android.gms:play-services-auth:19.0.0"
//android dependencies magically disappear during compilation, thanks gradle! //android dependencies magically disappear during compilation, thanks gradle!
def sdkFile = new File((String)findSdkDir(), "/platforms/android-29/android.jar") compileOnly "Anuken:Arc:android"
if(sdkFile.exists()) compileOnly files(sdkFile.absolutePath)
} }
task copyAndroidNatives(){ task copyAndroidNatives(){
+1 -7
View File
@@ -17,13 +17,7 @@ buildscript{
//fake repository to download my patched robovm jar from //fake repository to download my patched robovm jar from
ivy{ ivy{
url 'https://github.com/' url 'https://github.com/'
patternLayout{ artifact '/[organisation]/[module]/raw/a-single-jar-file/[revision].jar' }
patternLayout {
artifact '/[organisation]/[module]/raw/a-single-jar-file/[revision].jar'
}
// This is required in Gradle 6.0+ as metadata file (ivy.xml)
// is mandatory. Docs linked below this code section
metadataSources{ artifact() } metadataSources{ artifact() }
} }
} }