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 0
/
build.gradle
84 lines (70 loc) · 2.56 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
buildscript {
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
if(!project.hasProperty("bootstrap")) {
classpath group: "me.seeber.gradle", name: "gradle-project-config", version: "1.2.0-SNAPSHOT"
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-plugin-publish-config", version: "1.1.1"
classpath group: "me.seeber.gradle", name: "gradle-license-config", version: "1.1.1"
}
}
}
version = "1.2.0-SNAPSHOT"
group = "me.seeber.gradle"
description = "Manage multi-project workspaces"
if(project.hasProperty("bootstrap")) {
apply plugin: "java"
apply plugin: "maven"
}
else {
apply plugin: "me.seeber.distribution.bintray"
apply plugin: "me.seeber.distribution.maven"
apply plugin: "me.seeber.ide.eclipse"
apply plugin: "me.seeber.distribution.gradle-plugin"
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"
}
githubConfig { user = "jochenseeber" }
}
pluginBundle {
tags = ["workspace", "multiproject"]
plugins { workspacePlugin.id = "me.seeber.workspace" }
}
}
dependencies {
compile(group: "com.google.guava", name: "guava", version: "21.0")
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:"org.spockframework", name: "spock-core", version: "1.0-groovy-2.4") {
exclude(group: "org.codehaus.groovy", module: "groovy-all")
}
}
else {
annotations(group: "me.seeber.annotations", name: "jdk-annotations", version: "1.8.0-r.3")
annotations(group: "me.seeber.annotations", name: "gradle-api-annotations", version: "3.1-r.3")
}
}
if(project.hasProperty("bootstrap")) {
repositories {
mavenLocal()
mavenCentral()
maven { url = "https://plugins.gradle.org/m2" }
jcenter()
}
}