-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
97 lines (82 loc) · 2.61 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
allprojects {
group 'cn.enaium.cafully'
version '1.1.1'
}
subprojects {
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'signing'
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
}
dependencies {
api 'org.tinylog:tinylog-api:2.6.1'
api 'org.tinylog:tinylog-impl:2.6.1'
}
java {
withSourcesJar()
withJavadocJar()
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
tasks.withType(Javadoc) {
options.encoding = "UTF-8"
}
publishing {
repositories {
maven {
url "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = project.properties["ossrhUsername"]
password = project.properties["ossrhPassword"]
}
}
}
publications {
mavenJava(MavenPublication) {
groupId project.group
artifactId project.name
version project.version
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'cafully'
description = 'A Java Agent Framework'
url = 'https://github.com/Cafully/cafully'
licenses {
license {
name = 'Mozilla Public License Version 2.0'
url = 'https://mozilla.org/MPL/2.0'
}
}
developers {
developer {
id = 'enaium'
name = 'Enaium'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:https://github.com/Cafully/cafully.git'
developerConnection = 'scm:git:https://github.com/Cafully/cafully.git'
url = 'https://github.com/Cafully/cafully'
}
}
}
}
}
signing {
if (project.properties["signing.secretKeyRingFile"]) {
sign publishing.publications.mavenJava
}
}
}