This repository has been archived by the owner on Jul 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
73 lines (58 loc) · 1.59 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
* This file was generated by the Gradle "init" task.
*
* This generated file contains a sample Java Library project to get you started.
* For more details take a look at the Java Libraries chapter in the Gradle
* user guide available at https://docs.gradle.org/5.0/userguide/java_library_plugin.html
*/
plugins {
// Apply the java-library plugin to add support for Java Library
id "java-library"
id "eclipse"
}
group = "com.github.fmjsjx"
version = "1.0.0"
ext {
junitVersion = "5.3.2"
slf4jVersion = "1.7.25"
log4jVersion = "2.11.1"
nettyVersion = "4.1.31.Final"
}
repositories {
maven {
url "https://maven.aliyun.com/repository/public"
}
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
api "org.slf4j:slf4j-api:${slf4jVersion}"
compileClasspath "io.netty:netty-all:${nettyVersion}"
// Use JUnit test framework
testImplementation "org.junit.jupiter:junit-jupiter-api:${junitVersion}"
testRuntime "org.apache.logging.log4j:log4j-slf4j-impl:${log4jVersion}"
testRuntime "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
}
test {
useJUnitPlatform()
}
compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
options.encoding = "UTF-8"
}
jar {
manifest {
attributes('Implementation-Title': project.name,
'Implementation-Version': project.version)
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
classifier = "sources"
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}