forked from clojurephant/clojurephant
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
63 lines (54 loc) · 1.5 KB
/
build.gradle
File metadata and controls
63 lines (54 loc) · 1.5 KB
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
plugins {
id 'org.ajoberstar.grgit' version '2.0.0'
id 'org.ajoberstar.reckon' version '0.2.1'
id 'com.diffplug.gradle.spotless' version '3.6.0'
id 'gradle-clojure.clojure' version '0.3.0-rc.3' apply false
id 'org.ajoberstar.stutter' version '0.2.0' apply false
id 'com.gradle.plugin-publish' version '0.9.9' apply false
}
reckon {
normal = scopeFromProp()
preRelease = stageFromProp('milestone', 'rc', 'final')
}
allprojects {
apply plugin: 'com.diffplug.gradle.spotless'
group = 'io.github.gradle-clojure'
repositories {
jcenter()
maven { url = 'https://clojars.org/repo' }
}
plugins.withId('maven-publish') {
publishing {
repositories {
maven {
name = 'bintray'
url = 'https://api.bintray.com/maven/gradle-clojure/maven/gradle-clojure/;publish=1'
credentials {
username = System.env['BINTRAY_USER']
password = System.env['BINTRAY_KEY']
}
}
}
}
}
plugins.withId('java') {
sourceCompatibility = '1.8'
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
// ensure consistent formatting
spotless {
java {
eclipse().configFile rootProject.file('gradle/eclipse-java-google-style-nowrap.xml')
licenseHeaderFile file('gradle/HEADER')
}
format('gradle') {
target '**/*.gradle'
trimTrailingWhitespace()
indentWithSpaces(2)
endWithNewline()
}
}
}
}