Skip to content

Commit b9ff2e5

Browse files
committed
* added gradle-maven-bintray plugin to build.gradle
* dropped the now revoked API keys * updated makefile to have all and upload targets
1 parent ebe735b commit b9ff2e5

File tree

4 files changed

+21
-25
lines changed

4 files changed

+21
-25
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
build
22
.gradle
3+
target

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
all:
2-
mvn install
2+
./gradlew jar
33

4-
build:
5-
mvn compile
4+
upload:
5+
./gradlew bintrayUpload

build.gradle

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ buildscript {
77
}
88
}
99

10+
apply plugin: 'maven-publish'
1011
apply plugin: 'com.jfrog.bintray'
1112
apply plugin: 'java'
1213
apply plugin: 'ivy-publish'
@@ -48,6 +49,19 @@ publishing {
4849
asNode().info[0].appendNode('description', description)
4950
}
5051
}
52+
53+
mavenJava(MavenPublication) {
54+
from components.java
55+
artifact(sourceJar) {
56+
classifier "sources"
57+
}
58+
pom.withXml {
59+
def root = asNode()
60+
root.appendNode('name', 'SimpleKML')
61+
root.appendNode('url', 'http://github.com/crankycoder/SimpleKML')
62+
}
63+
}
64+
5165
}
5266
}
5367

@@ -58,9 +72,9 @@ compileJava {
5872

5973

6074
bintray {
61-
user = 'crankycoder'
62-
key = '71a63463f17c7986fa654d7fb6c3e4d764daaaf8'
63-
75+
user = ''
76+
key = ''
77+
publications = ['mavenJava']
6478
publish = true
6579
pkg {
6680
repo = 'SimpleKML'

pom.xml

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)