This repository has been archived by the owner on Jun 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
125 lines (105 loc) · 4.05 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
buildscript {
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
if(!project.hasProperty("bootstrap")) {
classpath group: "me.seeber.gradle", name: "gradle-bintray-config", version: "1.1.1"
classpath group: "me.seeber.gradle", name: "gradle-github-config", version: "1.1.1"
classpath group: "me.seeber.gradle", name: "gradle-license-config", version: "1.1.1"
classpath group: "me.seeber.gradle", name: "gradle-plugin-publish-config", version: "1.1.1"
classpath group: "me.seeber.gradle", name: "gradle-project-config", version: "1.2.0-SNAPSHOT"
}
}
}
version = "1.2.0-SNAPSHOT"
group = "me.seeber.gradle"
description = "Default configuration for Gradle builds"
if(project.hasProperty("bootstrap")) {
apply plugin: "java"
apply plugin: "groovy"
apply plugin: "maven"
}
else {
apply plugin: "me.seeber.distribution.bintray"
apply plugin: "me.seeber.distribution.gradle-plugin"
apply plugin: "me.seeber.distribution.maven"
apply plugin: "me.seeber.ide.eclipse"
apply plugin: "me.seeber.project.gradle-plugin"
apply plugin: "me.seeber.repository.github"
apply plugin: "me.seeber.setup.license"
apply plugin: "me.seeber.validation.checkstyle"
model {
projectConfig {
organization.name = "Jochen Seeber"
inceptionYear = 2016
license {
id = "BSD 2-Clause"
exclude "*.prefs"
}
}
githubConfig { user = "jochenseeber" }
}
pluginBundle {
tags = ["build", "configuration"]
plugins {
baseProjectPlugin {
id = "me.seeber.project.base"
displayName = "Configuration for Gradle Builds"
}
mavenDistributionPlugin {
id = "me.seeber.distribution.maven"
displayName = "Configuration for Maven Distribution"
}
eclipseIdePlugin {
id = "me.seeber.ide.eclipse"
displayName = "Configuration for Eclipse IDE"
}
annotationProjectPlugin {
id = "me.seeber.project.annotations"
displayName = "Configuration for External Annotations Projects"
}
gradlePluginProjectPlugin {
id = "me.seeber.project.gradle-plugin"
displayName = "Configuration for Gradle Plugin Projects"
}
groovyProjectPlugin {
id = "me.seeber.project.groovy"
displayName = "Configuration for Groovy Projects"
}
javaProjectPlugin {
id = "me.seeber.project.java"
displayName = "Configuration for Java Projects"
}
}
}
}
dependencies {
compile(group: "com.google.guava", name: "guava", version: "22.0")
compile(group: "gradle.plugin.com.dorongold.plugins", name: "task-tree", version: "1.3")
compile(group: "net.bytebuddy", name: "byte-buddy", version: "1.5.7")
if(project.hasProperty("bootstrap")) {
compile(gradleApi())
compile(localGroovy())
compileOnly(group: "org.eclipse.jdt", name: "org.eclipse.jdt.annotation", version: "2.0.0")
testCompile(gradleTestKit())
testCompile(group: "me.seeber.gradle", name: "gradle-test-kit", version: "1.1.1")
testCompileOnly(group: "org.eclipse.jdt", name: "org.eclipse.jdt.annotation", version: "2.0.0")
}
else {
annotations(group: "me.seeber.annotations", name: "gradle-api-annotations", version: "3.1-r.3")
annotations(group: "me.seeber.annotations", name: "jdk-annotations", version: "1.8.0-r.3")
annotations(group: "me.seeber.annotations", name: "byte-buddy-annotations", version: "1.4.30-r.3")
}
}
if(project.hasProperty("bootstrap")) {
repositories {
mavenLocal()
mavenCentral()
maven { url = "https://plugins.gradle.org/m2" }
jcenter()
}
}