-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
45 lines (40 loc) · 1.19 KB
/
build.gradle
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'
id 'application'
}
group = 'linsmod'
version = '1.0-SNAPSHOT'
mainClassName = 'com.linsmod.Main'
task fatJar(type: Jar) {
manifest {
attributes 'Main-Class': "${mainClassName}"
}
archiveBaseName = "${rootProject.name}"
tasks.withType(Jar){
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
//from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } setDuplicatesStrategy(DuplicatesStrategy.INCLUDE) }
with jar
}
repositories {
maven { url 'https://maven.aliyun.com/repository/public' }
// google {
// content {
// includeGroupByRegex("com\\.android.*")
// includeGroupByRegex("com\\.google.*")
// includeGroupByRegex("androidx.*")
// }
// }
mavenCentral()
gradlePluginPortal()
}
dependencies {
implementation 'org.litepal.guolindev:core:3.2.3'
implementation 'com.google.code.gson:gson:2.10'
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
}
test {
useJUnitPlatform()
}