Skip to content

Commit 5667ccd

Browse files
committed
chore: fix jitpack builds
1 parent 8384e4c commit 5667ccd

3 files changed

Lines changed: 12 additions & 5 deletions

File tree

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# http://www.gradle.org/docs/current/userguide/build_environment.html
66
# Specifies the JVM arguments used for the daemon process.
77
# The setting is particularly useful for tweaking memory settings.
8-
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
8+
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
99
# When configured, Gradle will run in incubating parallel mode.
1010
# This option should only be used with decoupled projects. More details, visit
1111
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects

jitpack.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
jdk:
2+
- openjdk17
3+
install:
4+
- ./gradlew :library:publishReleasePublicationToMavenLocal

library/build.gradle

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
apply plugin: 'com.android.library'
1+
plugins {
2+
id 'com.android.library'
3+
id 'kotlin-android'
4+
id 'maven-publish'
5+
id 'signing'
6+
}
27

38
android {
49
compileSdk COMPILE_SDK_VERSION as int
@@ -62,9 +67,6 @@ ext {
6267

6368
// apply from: 'https://gist.githubusercontent.com/wasabeef/2f2ae8d97b429e7d967128125dc47854/raw/maven-central-v1.gradle'
6469

65-
apply plugin: 'maven-publish'
66-
apply plugin: 'signing'
67-
6870
def sonatypeUsername = rootProject.hasProperty('sonatypeUsername')? rootProject.sonatypeUsername : ''
6971
def sonatypePassword = rootProject.hasProperty('sonatypePassword')? rootProject.sonatypePassword : ''
7072

@@ -104,6 +106,7 @@ afterEvaluate {
104106
}
105107
}
106108
repositories {
109+
mavenLocal()
107110
maven {
108111
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
109112
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots"

0 commit comments

Comments
 (0)