forked from nilsmagnus/wsdl2java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
94 lines (79 loc) · 2.44 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
plugins {
id "groovy"
id "maven-publish"
id "java-gradle-plugin"
id "com.jfrog.bintray" version "1.8.4"
id 'idea'
id 'eclipse'
}
group = 'no.nils'
version = '0.13-SNAPSHOT'
// stay compatible with the crowd
sourceCompatibility = JavaVersion.VERSION_1_6
targetCompatibility = JavaVersion.VERSION_1_6
repositories {
jcenter()
}
dependencies {
implementation localGroovy()
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.2'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.5.2'
testImplementation gradleTestKit()
runtimeOnly "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.61"
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.5.2'
}
java {
withSourcesJar()
}
test {
useJUnitPlatform()
}
gradlePlugin {
plugins {
wsdl2java {
id = 'no.nils.wsdl2java'
implementationClass = 'no.nils.wsdl2java.Wsdl2JavaPlugin'
}
}
}
publishing {
publications {
maven(MavenPublication) {
from components.java
}
}
}
bintray {
apiUrl = "https://api.bintray.com"
user = System.env.BINTRAY_USER
key = System.env.BINTRAY_API_KEY
publications = ['maven'] //When uploading Maven-based publication files
// - AND/OR -
dryRun = false //Whether to run this as dry-run, without deploying
publish = true //If version should be auto published after an upload
pkg {
repo = 'maven'
//userOrg = 'no.nils' //An optional organization name when the repo belongs to one of the user's orgs
name = 'wsdl2java'
desc = 'Gradle wsdl2java plugin'
websiteUrl = 'https://github.com/nilsmagnus/wsdl2java'
issueTrackerUrl = 'https://github.com/nilsmagnus/wsdl2java/issues'
vcsUrl = 'https://github.com/nilsmagnus/wsdl2java.git'
licenses = ['MIT']
labels = ['gradle', 'wsdl2java', 'plugin']
publicDownloadNumbers = true
//Optional version descriptor
version {
name = project.version //Bintray logical version name
desc = ''
//released = '' //2 possible values: date in the format of 'yyyy-MM-dd'T'HH:mm:ss.SSSZZ' OR a java.util.Date instance
vcsTag = project.version
attributes = ['gradle-plugin': 'no.nils.wsdl2java:no.nils:wsdl2java']
//Optional version-level attributes
}
}
}
wrapper {
gradleVersion = '6.0.1'
}
build.doLast { uploadArchives }