Skip to content

Commit

Permalink
Merge pull request #101 from sullyAL/main
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer authored Sep 8, 2023
2 parents 1ba55a6 + 0a63201 commit fe09f9d
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,16 @@ buildscript {
}

// Creating sources with comments
task androidSourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.srcDirs
if (GradleVersion.current() < GradleVersion.version('8.0')) {
task androidSourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.srcDirs
}
} else {
task androidSourcesJar(type: Jar) {
archiveClassifier = 'sources'
from android.sourceSets.main.java.srcDirs
}
}

afterEvaluate {
Expand Down

0 comments on commit fe09f9d

Please sign in to comment.