forked from freefair/gradle-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
116 lines (102 loc) · 4 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
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.gradle.publish:plugin-publish-plugin:0.10.0"
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.12.0"
classpath "io.freefair.gradle:maven-plugin:3.0.0-rc.3"
}
}
apply plugin: "io.codearte.nexus-staging"
nexusStaging {
stagingProfileId = '7e6204597a774f'
username = findProperty('ossrhUser')
password = findProperty('ossrhPass')
}
allprojects {
repositories {
jcenter()
}
group = "io.freefair.gradle"
plugins.withId("java") {
def javaVersion = JavaVersion.current()
if (javaVersion.isJava11Compatible()) {
javadoc.options.links "https://docs.oracle.com/en/java/javase/$javaVersion.majorVersion/docs/api/"
} else {
javadoc.options.links "https://docs.oracle.com/javase/$javaVersion.majorVersion/docs/api/"
}
javadoc.options.links "https://docs.gradle.org/$gradle.gradleVersion/javadoc/"
javadoc.failOnError = false
sourceCompatibility = 1.8
targetCompatibility = 1.8
plugins.apply "jacoco"
jacocoTestReport.reports.xml.enabled = true
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.4'
annotationProcessor 'org.projectlombok:lombok:1.18.4'
testCompileOnly 'org.projectlombok:lombok:1.18.4'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.4'
}
}
plugins.withId("com.gradle.plugin-publish") {
pluginBundle {
website = "https://github.com/freefair/gradle-plugins/tree/${version == 'unspecified' ? 'master' : version}${projectDir.toString() - rootDir.toString()}"
vcsUrl = 'https://github.com/freefair/gradle-plugins'
mavenCoordinates {
groupId = project.group
}
}
}
plugins.withId("maven-publish") {
publishing {
publications.withType(MavenPublication) {
pom {
url = 'https://github.com/freefair/gradle-plugins'
name = provider { project.description }
description = provider { project.description }
inceptionYear = '2016'
licenses {
license {
name = 'MIT'
url = 'https://github.com/freefair/gradle-plugins/blob/master/LICENSE'
}
}
organization {
name = 'FreeFair'
url = 'http://joinfaces.org'
}
developers {
developer {
id = 'larsgrefer'
name = 'Lars Grefer'
email = '[email protected]'
timezone = 'Europe/Berlin'
}
developer {
id = 'frisch12'
name = 'Dennis Fricke'
email = '[email protected]'
timezone = 'Europe/Berlin'
}
}
ciManagement {
system = 'Travis CI'
url = 'https://travis-ci.org/freefair/gradle-plugins/'
}
issueManagement {
system = 'Github'
url = 'https://github.com/freefair/gradle-plugins/issues'
}
scm {
connection = 'scm:git:https://github.com/freefair/gradle-plugins.git'
developerConnection = 'scm:git:[email protected]:freefair/gradle-plugins.git'
url = 'https://github.com/freefair/gradle-plugins/'
}
}
}
}
}
}