-
Notifications
You must be signed in to change notification settings - Fork 567
Expand file tree
/
Copy pathbuild.gradle
More file actions
45 lines (39 loc) · 1.29 KB
/
build.gradle
File metadata and controls
45 lines (39 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
plugins {
id 'java-library'
}
java {
ext.javaSourceVer = project.hasProperty('javaSourceVer') ? JavaVersion.toVersion(project.getProperty('javaSourceVer')) : JavaVersion.VERSION_1_8
ext.javaTargetVer = project.hasProperty('javaTargetVer') ? JavaVersion.toVersion(project.getProperty('javaTargetVer')) : JavaVersion.VERSION_1_8
sourceCompatibility = ext.javaSourceVer
targetCompatibility = ext.javaTargetVer
}
repositories {
maven { url 'https://maven.google.com' }
mavenCentral()
maven { url 'https://kotlin.bintray.com/kotlinx' }
jcenter()
}
dependencies {
// https://mvnrepository.com/artifact/com.android.tools.build/manifest-merger
compile group: 'com.android.tools.build', name: 'manifest-merger', version: '30.2.2'
}
sourceSets {
main {
java {
srcDirs = ["src"]
}
}
}
jar {
duplicatesStrategy = 'exclude'
manifest {
attributes 'Main-Class': 'com.xamarin.manifestmerger.Main'
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
} {
// Exclude native jnidispatch content to simplify installer signing and notarization
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA', 'com/sun/jna/**/*jnidispatch*'
}
archiveName 'manifestmerger.jar'
}