-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
59 lines (52 loc) · 1.58 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
buildscript {
repositories { jcenter() }
dependencies { classpath 'org.minimallycorrect.gradle:DefaultsPlugin:0.0.31' }
}
plugins {
id "java-gradle-plugin"
id "maven"
id "com.gradle.plugin-publish" version "0.9.2"
}
apply plugin: 'org.minimallycorrect.gradle.DefaultsPlugin'
group="org.minimallycorrect.gradle"
minimallyCorrectDefaults {
description = "Sets up sensible defaults for our gradle projects to avoid boilerplate"
labels = ["gradle", "gradle-plugin"]
} ()
repositories {
jcenter()
maven { url = "https://repo.nallar.me/" }
maven { url = "https://plugins.gradle.org/m2/" }
maven { url = "https://files.minecraftforge.net/maven" }
}
configurations.all { resolutionStrategy.cacheChangingModulesFor 30, 'seconds' }
dependencies {
compileOnly("net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT") {
transitive = false
}
compileOnly("gradle.plugin.com.matthewprenger:CurseGradle:1.4.0") {
transitive = false
}
compile "com.diffplug.spotless:spotless-plugin-gradle:3.26.1"
compile "org.shipkit:shipkit:2.2.5"
}
gradlePlugin {
plugins {
DefaultsPlugin {
id = 'org.minimallycorrect.gradle.DefaultsPlugin'
implementationClass = 'org.minimallycorrect.gradle.DefaultsPlugin'
}
}
}
pluginBundle {
website = 'http://www.minimallycorrect.org/'
vcsUrl = 'https://github.com/MinimallyCorrect/DefaultsPlugin'
description = 'Sets up sensible defaults for our gradle projects to avoid boilerplate '
tags = ['gradle', 'gradle-plugin']
plugins << {
DefaultsPlugin {
id = 'org.minimallycorrect.gradle.DefaultsPlugin'
displayName = 'MinimallyCorrect Defaults Plugin'
}
}
}