-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
119 lines (103 loc) · 3.77 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
plugins {
id 'io.spring.dependency-management' version '1.0.10.RELEASE' apply false
id 'org.unbroken-dome.test-sets' version '3.0.1' apply false
}
allprojects {
apply plugin: 'idea'
apply plugin: 'eclipse'
}
subprojects {
apply plugin: 'java'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'org.unbroken-dome.test-sets'
apply plugin: 'maven-publish'
apply plugin: 'signing'
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencyManagement {
imports {
mavenBom "org.springframework.boot:spring-boot-dependencies:${springBootVersion}"
}
}
tasks.withType(JavaCompile) { options.encoding = "UTF-8" }
repositories {
mavenLocal()
maven { url 'https://maven.aliyun.com/repository/public/' }
mavenCentral()
}
testSets {
integrationTest { dirName = 'integration-test' }
}
project.integrationTest {
outputs.upToDateWhen { false }
}
check.dependsOn integrationTest
integrationTest.mustRunAfter test
tasks.withType(Test) {
reports.html.destination = file("${reporting.baseDir}/${name}")
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
classifier = 'sources'
}
task javadocJar(type: Jar) {
from javadoc
classifier = 'javadoc'
}
publishing {
publications {
mavenJava(MavenPublication) {
version = project.hasProperty('release') ? project.version - '-SNAPSHOT' : project.version
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = project.name
description = 'Plugin framework for Spring Boot based on pf4j.'
url = 'https://github.com/javaloong/kongmink-pf4j'
organization {
name = 'org.javaloong'
url = 'https://javaloong.org'
}
issueManagement {
system = 'GitHub'
url = 'https://github.com/javaloong/kongmink-pf4j/issues'
}
license {
name = 'Apache License 2.0'
url = 'https://github.com/javaloong/kongmink-pf4j/blob/master/LICENSE'
distribution = 'repo'
}
scm {
url = 'https://github.com/javaloong/kongmink-pf4j'
connection = 'scm:git:git://github.com/javaloong/kongmink-pf4j.git'
developerConnection = 'scm:git:ssh://[email protected]:javaloong/kongmink-pf4j.git'
}
developers {
developer {
name = 'tutunannan'
email = '[email protected]'
}
}
}
repositories {
maven {
def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots"
def stagingRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : stagingRepoUrl
credentials {
username sonatypeUsername
password sonatypePassword
}
}
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
javadoc {
options.addStringOption("charset", "UTF-8")
}
}