-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
158 lines (143 loc) · 4.26 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
/*
File
https://github.com/virtualdogbert/GroovyConfigWriter/blob/master/build.gradle
has been used as basis for this file.
*/
plugins {
id "groovy"
id "maven-publish"
id "com.jfrog.bintray" version "1.8.4"
id "com.jfrog.artifactory" version "4.8.1"
id "idea"
id "jacoco"
id "enterprise.groovy.plugin" version "1.0.4"
}
sourceCompatibility = 1.8
group = "io.i-t"
version = "2.2.0"
description = "Groovy Logging AST transformation"
wrapper {
gradleVersion = "5.5.1"
}
repositories {
jcenter()
}
sourceSets {
main.groovy.srcDirs = ["src/main/groovy", "generated"]
main.java.srcDirs = ["src/main/java"]
test.groovy.srcDirs = ["src/test/groovy"]
}
dependencies {
compileOnly 'org.codehaus.groovy:groovy-all:2.5.4'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.7'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
testCompile 'org.codehaus.groovy:groovy-all:2.5.4'
testCompile "io.i-t:bobbin:4.0.0"
}
task sourceJar(type: Jar) {
from sourceSets.main.allSource
classifier "sources"
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
ext {
theTitle = "Groovy Annotation injecting logging code"
titleForDocumentation = archivesBaseName + " " + version
packageTitle = group
description = "Groovy Annotation injecting logging code"
}
publishing {
publications {
groovyMaven(MavenPublication) {
from components.java
//https://github.com/webjars/webjars-locator-weblogic/blob/master/build.gradle
pom.withXml {
asNode().children().last() + {
resolveStrategy = Closure.DELEGATE_FIRST
name bintray.pkg.name
description bintray.pkg.desc
url bintray.pkg.websiteUrl
scm {
url bintray.pkg.vcsUrl
connection bintray.pkg.vcsUrl
developerConnection bintray.pkg.vcsUrl
}
licenses {
license {
name "Apache-2.0"
url "http://www.apache.org/licenses/"
distribution 'repo'
}
}
developers {
developer {
id 'apryamostanov'
name 'Anton Pryamostanov'
email 'anton.pryamostanov@gmail.com'
}
}
}
}
artifact(sourceJar) {
classifier "sources"
}
artifact(javadocJar) {
classifier "javadoc"
}
}
}
}
artifacts {
archives(sourceJar)
}
bintray {
user = System.getenv("bintrayuser")
key = System.getenv("bintraypassword")
publications = ["groovyMaven"]
def projectName = project.name
def projectDescription = project.description
pkg {
userOrg = "infinite-technology"
repo = "io.i-t"
name = "blackbox"
desc = "Groovy Annotation injecting logging code"
issueTrackerUrl = "https://github.com/INFINITE-TECHNOLOGY/BLACKBOX/issues"
vcsUrl = "https://github.com/INFINITE-TECHNOLOGY/BLACKBOX.git"
websiteUrl = "https://i-t.io/Blackbox/"
licenses = ["Apache-2.0"]
}
}
artifactory {
contextUrl = 'http://oss.jfrog.org'
publish {
repository {
repoKey = 'oss-snapshot-local'
username = System.getProperty('bintray.user')
password = System.getProperty('bintray.key')
}
defaults {
publications('groovyMaven')
publishArtifacts = true
publishPom = true
}
}
resolve {
repoKey = 'jcenter'
}
clientConfig.info.setBuildNumber(System.getProperty('build.number'))
}
jacocoTestReport {
reports {
xml.enabled true
html.enabled false
}
}
check.dependsOn jacocoTestReport
bintrayUpload.dependsOn javadocJar
configurations {
providedRuntime
compile.exclude(group: 'junit')
compile.exclude(group: 'org.junit.platform')
}