Skip to content

Commit

Permalink
Fix Jitpack not compiling (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
DersWasTaken authored Dec 30, 2023
1 parent 8b8e961 commit 9646049
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 2 deletions.
13 changes: 12 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import com.android.build.gradle.internal.lint.AndroidLintAnalysisTask
import korlibs.korge.gradle.*

plugins {
Expand All @@ -10,10 +11,20 @@ korge {
targetJvm()
targetJs()
targetIos()
targetAndroidDirect()
if (System.getenv("JITPACK") != "true") {
targetAndroidDirect()
}
serializationJson()
}

afterEvaluate {
if (System.getenv("JITPACK") != "true") {
tasks.getByName<AndroidLintAnalysisTask>("lintVitalAnalyzeRelease") {
dependsOn(tasks.getByName("jvmProcessResources"))
}
}
}

dependencies {
add("commonMainApi", project(":deps"))
}
Expand Down
19 changes: 19 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
#
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx1024m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
#
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
#Fri Dec 22 13:24:41 MST 2023
android.enableJetifier=true
android.useAndroidX=true
kotlin.daemon.jvmargs=-Xmx2048M
kotlin.mpp.applyDefaultHierarchyTemplate=false
enableKotlinAndroid=false
org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
zipStorePath=wrapper/dists
7 changes: 7 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
jdk:
- openjdk17
before_install:
- sdk install java 17.0.3-tem
- sdk use java 17.0.3-tem
- sdk install maven
- mvn -v

0 comments on commit 9646049

Please sign in to comment.