-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
101 lines (86 loc) · 2.22 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
plugins {
id 'java'
id 'groovy'
id "com.jfrog.bintray" version "1.8.4"
id 'com.palantir.git-version' version '0.12.2'
id 'maven-publish'
}
group 'de.sijakubo'
version = gitVersion()
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
implementation 'org.projectlombok:lombok:1.18.12'
annotationProcessor 'org.projectlombok:lombok:1.18.12'
implementation 'org.apache.poi:poi:4.1.1'
implementation 'org.apache.poi:poi-ooxml:4.1.1'
implementation 'junit:junit:4.13'
implementation 'org.slf4j:slf4j-log4j12:1.7.26'
testImplementation 'io.github.nifty10m:yangyin:1.1.2'
testImplementation 'org.spockframework:spock-core:1.3-groovy-2.5'
}
task sourcesJar(type: Jar) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar) {
archiveClassifier = 'javadoc'
from javadoc
}
def pomConfig = {
licenses {
license {
name "The Apache Software License, Version 2.0"
url "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution "repo"
}
}
developers {
developer {
id "sijakubo"
name "Simon Jakubowski"
email "[email protected]"
}
}
scm {
url "https://github.com/sijakubo/excel-comparison"
}
}
publishing {
publications {
ExcelComparisonPublication(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
groupId 'de.sijakubo'
artifactId 'excel-comparison'
version project.getVersion()
pom.withXml {
def root = asNode()
root.appendNode('description', 'Excel comparison lib')
root.appendNode('name', 'excel-comparison')
root.appendNode('url', 'https://github.com/sijakubo/excel-comparison')
root.children().last() + pomConfig
}
}
}
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publications = ['ExcelComparisonPublication']
pkg {
repo = 'excel-comparison'
name = 'excel-comparison'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/sijakubo/excel-comparison'
version {
name = project.getVersion()
desc = 'Excel comparison lib'
released = new Date()
vcsTag = project.getVersion()
}
}
}