Skip to content
This repository was archived by the owner on May 3, 2022. It is now read-only.

Commit 2a0259c

Browse files
committed
Include artifactory snapshot configuration
1 parent e2d786c commit 2a0259c

File tree

4 files changed

+51
-46
lines changed

4 files changed

+51
-46
lines changed

artifactory.gradle

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
artifactory {
2+
contextUrl = 'http://oss.jfrog.org'
3+
publish {
4+
repository {
5+
repoKey = 'oss-snapshot-local'
6+
username = System.getProperty('bintray.user')
7+
password = System.getProperty('bintray.key')
8+
}
9+
defaults {
10+
publications('mavenPublication')
11+
publishArtifacts = true
12+
publishPom = true
13+
}
14+
}
15+
resolve {
16+
repoKey = 'jcenter'
17+
}
18+
clientConfig.info.setBuildNumber(System.getProperty('build.number'))
19+
}

bintray.gradle

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
bintray {
2+
user = System.getProperty('bintray.user')
3+
key = System.getProperty('bintray.key')
4+
publications = ['mavenPublication']
5+
publish = true
6+
override = true
7+
8+
pkg {
9+
repo = 'dxram'
10+
name = 'dxmon'
11+
userOrg = 'hhu-bsinfo'
12+
licenses = ['GPL-3.0']
13+
websiteUrl = 'https://www.dxram.io'
14+
vcsUrl = 'https://github.com/hhu-bsinfo/dxmon.git'
15+
labels = ['dxram', 'monitoring']
16+
githubRepo = 'hhu-bsinfo/dxmon'
17+
//githubReleaseNotesFile = 'README.md'
18+
19+
version {
20+
name = project.version
21+
released = new Date()
22+
}
23+
}
24+
}

build.gradle

+8-21
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,31 @@
11
import org.gradle.internal.jvm.Jvm
22

33
plugins {
4-
54
id 'java'
6-
75
id 'maven-publish'
8-
9-
id 'com.jfrog.bintray' version '1.8.0'
6+
id 'com.jfrog.bintray' version '1.8.4'
7+
id "com.jfrog.artifactory" version "4.7.5"
108
}
119

12-
sourceCompatibility = 1.8
13-
14-
targetCompatibility = 1.8
15-
1610
group = 'de.hhu.bsinfo'
11+
version = '0.3.1' + (Boolean.valueOf(System.getProperty("snapshot")) ? "-SNAPSHOT" : "")
1712

18-
version = '1.0.0'
13+
sourceCompatibility = 1.8
14+
targetCompatibility = 1.8
1915

2016
repositories {
21-
2217
mavenCentral()
2318

2419
maven {
25-
2620
url "https://plugins.gradle.org/m2/"
2721
}
2822

2923
maven {
30-
3124
url "https://dl.bintray.com/hhu-bsinfo/dxram"
3225
}
3326
}
3427

3528
task wrapper(type: Wrapper) {
36-
3729
gradleVersion = "4.7"
3830
}
3931

@@ -42,23 +34,18 @@ tasks.withType(JavaCompile) {
4234
}
4335

4436
task sourcesJar(type: Jar, dependsOn: classes) {
45-
4637
classifier = 'sources'
47-
4838
from sourceSets.main.allSource
4939
}
5040

5141
task javadocJar(type: Jar, dependsOn: javadoc) {
52-
5342
classifier = 'javadoc'
54-
5543
from javadoc.destinationDir
5644
}
5745

5846
dependencies {
59-
implementation 'de.hhu.bsinfo:dxutils:1.0.0'
60-
6147
implementation files(Jvm.current().toolsJar)
48+
implementation 'de.hhu.bsinfo:dxutils:1.0.0'
6249

6350
testCompile group: 'junit', name: 'junit', version: '4.12'
6451
}
@@ -82,10 +69,10 @@ task fatJar(type: Jar) {
8269
}
8370

8471
artifacts {
85-
8672
archives sourcesJar
87-
8873
archives javadocJar
8974
}
9075

9176
apply from: 'publish.gradle'
77+
apply from: 'bintray.gradle'
78+
apply from: 'artifactory.gradle'

publish.gradle

-25
Original file line numberDiff line numberDiff line change
@@ -61,29 +61,4 @@ publishing {
6161
}
6262
}
6363
}
64-
}
65-
66-
bintray {
67-
user = System.getProperty('bintray.user')
68-
key = System.getProperty('bintray.key')
69-
publications = ['mavenPublication']
70-
publish = true
71-
override = true
72-
73-
pkg {
74-
repo = 'dxram'
75-
name = 'dxmon'
76-
userOrg = 'hhu-bsinfo'
77-
licenses = ['GPL-3.0']
78-
websiteUrl = 'https://www.dxram.io'
79-
vcsUrl = 'https://github.com/hhu-bsinfo/dxmon.git'
80-
labels = ['dxram', 'monitoring']
81-
githubRepo = 'hhu-bsinfo/dxmon'
82-
//githubReleaseNotesFile = 'README.md'
83-
84-
version {
85-
name = project.version
86-
released = new Date()
87-
}
88-
}
8964
}

0 commit comments

Comments
 (0)