forked from Praqma/VersionedBinaryArtifacts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
33 lines (28 loc) · 735 Bytes
/
build.gradle
File metadata and controls
33 lines (28 loc) · 735 Bytes
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
apply plugin: 'groovy'
apply plugin: 'maven-publish'
version = '1.0.1-SNAPSHOT'
group = 'net.praqma.gradle'
def artifact = 'GradleBuildProperties'
sourceCompatibility = targetCompatibility = '1.7'
dependencies {
compile gradleApi()
compile localGroovy()
}
publishing {
repositories {
maven {
def s = version.endsWith('-SNAPSHOT') ? 'snapshot' : 'release'
url "${artifactory_contextUrl}/plugins-${s}-local"
credentials {
username artifactory_user
password artifactory_password
}
}
}
publications {
maven(MavenPublication) {
artifactId artifact
from components.java
}
}
}