-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
54 lines (47 loc) · 1.52 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
plugins {
id 'nebula.release' version '9.2.0'
id 'nebula.maven-publish' version '9.4.6'
}
subprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'nebula.release'
apply plugin: 'nebula.maven-publish'
apply plugin: 'nebula.source-jar'
group = 'widen'
repositories {
maven {
url 'https://jfrog.ais.acquia.io/artifactory/widen-java-virtual/'
credentials {
username System.env.ACQUIA_JFROG_USER ?: ACQUIA_JFROG_USER
password System.env.ACQUIA_JFROG_TOKEN ?: ACQUIA_JFROG_TOKEN
}
authentication {
basic(BasicAuthentication)
}
}
}
publishing {
repositories {
maven {
def repo = project.version.toString().findAll(/dev\.\d+(\.uncommitted)?\+/).isEmpty() ? 'libs-releases-local' : 'libs-snapshots-local'
url "https://jfrog.ais.acquia.io/artifactory/${repo}"
credentials {
username System.env.ACQUIA_JFROG_USER ?: ACQUIA_JFROG_USER
password System.env.ACQUIA_JFROG_TOKEN ?: ACQUIA_JFROG_TOKEN
}
authentication {
basic(BasicAuthentication)
}
}
}
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
}
tasks.idea {
dependsOn = [ cleanIdeaModule, ideaModule ]
}
}