Skip to content

Commit

Permalink
update: fixing jitpack openjdk 11
Browse files Browse the repository at this point in the history
  • Loading branch information
amirisback committed Aug 18, 2021
1 parent c7d2b14 commit 6719983
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
10 changes: 9 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {

def versionMajor = 1
def versionMinor = 0
def versionPatch = 2

projectVersionCode = (versionMajor * 100) + (versionMinor * 10) + (versionPatch * 1)
projectVersionName = "$versionMajor.$versionMinor.$versionPatch"

compose_version = '1.0.0'
}
repositories {
Expand All @@ -18,4 +26,4 @@ buildscript {

task clean(type: Delete) {
delete rootProject.buildDir
}
}
11 changes: 9 additions & 2 deletions jitlib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ android {
kotlinOptions {
jvmTarget = '11'
}

}

dependencies {
Expand All @@ -44,11 +44,18 @@ dependencies {
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}

project.afterEvaluate {
afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
// Applies the component for the release build variant.
from components.release

// You can then customize attributes of the publication as shown below.
groupId = 'com.frogobox.test'
artifactId = 'jitpack-library-test'
version = "$projectVersionName"
}
}
}
Expand Down
5 changes: 1 addition & 4 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
jdk:
- openjdk11
install:
- ./gradlew :JitpackLibTest:build :JitpackLibTest:publishToMavenLocal -x :JitpackLibTest:test
- find . -name "*.aar"
- openjdk11

0 comments on commit 6719983

Please sign in to comment.