Skip to content

Commit 0b48f52

Browse files
committed
exclude manifest file and java folder from resources
1 parent 19acd09 commit 0b48f52

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

processing/core/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,19 @@ sourceSets {
1919
}
2020
resources {
2121
srcDirs = ["../../libs/processing-core/src/main/"]
22+
exclude "AndroidManifest.xml"
23+
exclude '**/java/**'
2224
}
2325
}
2426
}
2527

2628
task sourceJar(type: Jar, dependsOn: classes) {
2729
duplicatesStrategy = DuplicatesStrategy.INCLUDE
2830
classifier = "sources"
29-
from sourceSets.main.allSource
31+
from sourceSets.main.allSource
3032
}
3133

34+
3235
// Does not work because of Processing-specific tags in source code, such as @webref
3336
task javadocJar(type: Jar, dependsOn: javadoc) {
3437
classifier = "javadoc"

processing/mode/libraries/ar/build.gradle

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,24 @@ dependencies {
1111
implementationAar "com.google.ar:core:${garVersion}"
1212
}
1313

14-
task sourceJar(type: Jar) {
15-
from sourceSets.main.allJava
16-
archiveClassifier = "sources"
17-
}
18-
1914
sourceSets {
2015
main {
2116
java {
2217
srcDirs = ["../../../../libs/processing-ar/src/main/java/"]
2318
}
2419
resources {
2520
srcDirs = ["../../../../libs/processing-ar/src/main/"]
21+
exclude "AndroidManifest.xml"
22+
exclude '**/java/**'
2623
}
2724
}
2825
}
2926

27+
task sourceJar(type: Jar) {
28+
from sourceSets.main.allJava
29+
archiveClassifier = "sources"
30+
}
31+
3032
// Does not work because of Processing-specific tags in source code, such as @webref
3133
task javadocJar(type: Jar, dependsOn: javadoc) {
3234
classifier = "javadoc"

0 commit comments

Comments
 (0)