-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
71 lines (59 loc) · 1.92 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
buildscript {
dependencies {
classpath "gradle.plugin.nl.javadude.gradle.plugins:license-gradle-plugin:0.14.0"
}
}
plugins {
/* this plugin can check for newer versions of the used dependencies.
* run it from the command line like this:
* ./gradlew dependencyUpdates
* see also: https://github.com/ben-manes/gradle-versions-plugin
*
* in Android Studio open the gradle projects view and start
* Tasks - help - dependencyUpdates
*
* alternative:
* IntelliJ: Analyze - Inspect code
* the results in the Inspection view will contain dependencies that can be updated
* Android>Lint>Correctness>Obsolete Gradle Dependency
*/
id 'com.github.ben-manes.versions' version '0.17.0'
// for publishing
id "com.jfrog.bintray" version "1.8.1"
}
// https://docs.travis-ci.com/user/environment-variables/
final isCi = System.getenv("TRAVIS") != null
final isJitpack = System.getenv("JITPACK") != null
ext {
bintrayDryRun = true
}
allprojects {
group 'com.tmtron.enums'
version '1.0.5-SNAPSHOT'
description 'Annotation processor that builds an enum mapper which causes a compile-time error when you forget an enum'
}
subprojects {
repositories {
mavenCentral()
}
apply plugin: 'java'
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
}
if (isCi || isJitpack) {
logger.warn('skipping bintray for CI / JitPack builds')
} else {
logger.warn('using bintray')
// we don't need the bintray features for the ci/jitpack builds build
apply from: rootProject.file('gradle/bintray.gradle')
}
apply plugin: "com.github.hierynomus.license"
license {
header rootProject.file('LICENSE_HEADER')
strictCheck true
mapping {
java = 'SLASHSTAR_STYLE'
}
ext.year = Calendar.getInstance().get(Calendar.YEAR)
}
}