-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
110 lines (95 loc) · 3.1 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
plugins {
id 'com.widen.versioning' version '0.4.1'
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
}
allprojects {
apply plugin: 'idea'
group = 'com.widen'
ext.repo = 'https://github.com/Widen/tabitha'
idea.module.iml {
beforeMerged { module ->
module.dependencies.clear()
}
}
}
subprojects {
apply plugin: 'groovy'
apply plugin: 'java'
apply plugin: 'com.widen.versioning'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.2'
annotationProcessor 'org.projectlombok:lombok:1.18.2'
compileOnly 'org.atteo.classindex:classindex:3.4'
annotationProcessor 'org.atteo.classindex:classindex:3.4'
testCompile 'cglib:cglib-nodep:3.2.5'
testCompile 'org.codehaus.groovy:groovy-all:2.4.9'
testCompile 'org.objenesis:objenesis:2.6'
testCompile 'org.slf4j:slf4j-simple:1.7.25'
testCompile 'org.spockframework:spock-core:1.1-groovy-2.4'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier 'sources'
}
task javadocJar(type: Jar) {
from javadoc
classifier 'javadoc'
}
}
nexusPublishing {
repositories {
sonatype()
}
}
configure([project(':tabitha-core'), project(':tabitha-delimited'), project(':tabitha-excel'), project(':tabitha-json')]) {
apply plugin: 'maven-publish'
apply plugin: 'signing'
publishing {
publications {
maven(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = project.name
description = provider {
project.description
}
url = project.ext.repo
licenses {
license {
name = 'The MIT License'
url = 'https://opensource.org/licenses/MIT'
distribution = 'repo'
}
}
organization {
name = 'Widen Enterprises, Inc'
url = 'https://www.widen.com'
}
developers {
developer {
id = 'scoakley'
name = 'Stephen Coakley'
email = 'scoakley@widen.com'
}
}
scm {
url = project.ext.repo + '.git'
connection = project.ext.repo.replace('https://github.com/', 'scm:git@github.com:') + '.git'
developerConnection = connection
}
}
}
}
}
signing {
useInMemoryPgpKeys(findProperty('signingKey'), findProperty('signingPassword'))
sign publishing.publications.maven
}
}