This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 74
/
build.gradle
96 lines (80 loc) · 2.26 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
buildscript {
repositories {
google()
jcenter()
}
dependencies {
// classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath 'org.ajoberstar:grgit:2.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id 'io.codearte.nexus-staging' version '0.11.0' // must be in root project
id 'net.researchgate.release' version '2.6.0'
}
apply plugin: 'org.ajoberstar.grgit'
apply from: 'gradle/readme.gradle'
allprojects {
apply plugin: 'maven'
group = 'org.logback-extensions'
version = VERSION_NAME
}
subprojects {
apply plugin: 'java'
apply from: "${rootProject.rootDir}/gradle/deploy.gradle"
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
// Warn about deprecations
//options.compilerArgs << '-Xlint:deprecation'
// Warn about unchecked usages
options.compilerArgs << '-Xlint:unchecked'
// Don't warn about using source/target 1.5 option
options.compilerArgs << '-Xlint:-options'
options.debug(['debugLevel': 'source,lines,vars'])
options.debug = VERSION_NAME.contains('SNAPSHOT')
}
repositories {
mavenLocal()
jcenter()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
dependencies {
testCompile 'org.mockito:mockito-core:1.9.0'
testCompile 'junit:junit:4.12'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
javadoc {
failOnError false
// disable javadoc lint warnings (e.g., missing javadoc)
options.addBooleanOption('Xdoclint:none', true)
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
}
release {
tagTemplate = 'v_${version}'
preTagCommitMessage = ':cloud: Release'
tagCommitMessage = ':cloud: Release'
newVersionCommitMessage = ':cloud: Bump'
// versionPropertyFile = '../gradle.properties'
versionProperties = ['VERSION_NAME']
git {
requireBranch = ''
}
}
nexusStaging {
packageGroup = 'org.logback-extensions'
}