-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
80 lines (67 loc) · 2.03 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
}
}
plugins {
id 'java'
id 'maven-publish'
id 'io.codearte.nexus-staging' version '0.11.0'
}
apply plugin: 'com.bmuschko.nexus'
group 'io.github.kev1nst'
version '1.0.3'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.nutz', name: 'nutz', version: '1.r.67'
testCompile group: 'junit', name: 'junit', version: '4.12'
compileOnly group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.11.1'
compileOnly group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.11.1'
testCompile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.11.1'
testCompile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.11.1'
}
nexusStaging {
}
modifyPom {
project {
name = 'Jenkins REST Client'
description = 'Light-weight Jenkins REST API Client for Java'
url = 'https://github.com/kev1nst/jenkins-rest'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'kev1nst'
name = 'Tianshuo Zhao'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/kev1nst/jenkins-rest.git'
developerConnection = 'scm:git:ssh://github.com/kev1nst/jenkins-rest.git'
url = 'https://github.com/kev1nst/jenkins-rest'
}
}
}
extraArchive {
sources = true
tests = true
javadoc = true
}
nexus {
sign = true
repositoryUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
snapshotRepositoryUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'
}
uploadArchives.dependsOn build
closeAndReleaseRepository.dependsOn uploadArchives