Skip to content

Commit ad4d6fd

Browse files
author
emmanue1
committed
Add jd-core-x.y.y.jat to JCenter Maven repository
1 parent 4ca89c9 commit ad4d6fd

File tree

2 files changed

+61
-2
lines changed

2 files changed

+61
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ JD-Core is a JAVA decompiler written in JAVA.
66
[http://java-decompiler.github.io](http://java-decompiler.github.io)
77
- JD-Core source code:
88
[https://github.com/java-decompiler/jd-core](https://github.com/java-decompiler/jd-core)
9-
- Maven repository:
9+
- JD Maven repository:
1010
[https://raw.github.com/java-decompiler/mvn-repo/master](https://raw.github.com/java-decompiler/mvn-repo/master)
11+
- JCenter Maven repository:
12+
[https://jcenter.bintray.com/](https://jcenter.bintray.com/)
1113

1214
## Description
1315
JD-Core is a standalone JAVA library containing the JAVA decompiler of

build.gradle

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
apply plugin: 'java'
22
apply plugin: 'eclipse'
33
apply plugin: 'idea'
4+
apply plugin: 'maven-publish'
5+
apply plugin: 'com.jfrog.bintray'
46

57
dependencies {
68
testCompile 'junit:junit:4.12'
@@ -15,8 +17,17 @@ tasks.withType(JavaCompile) {
1517
options.encoding = 'UTF-8'
1618
}
1719

20+
buildscript {
21+
repositories {
22+
jcenter()
23+
}
24+
dependencies {
25+
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.+'
26+
}
27+
}
28+
1829
repositories {
19-
mavenCentral()
30+
jcenter()
2031
}
2132

2233
jar {
@@ -25,6 +36,52 @@ jar {
2536
}
2637
}
2738

39+
// Publication to JFrog Bintray Maven repository
40+
task sourceJar(type: Jar) {
41+
classifier 'sources'
42+
from sourceSets.main.allJava
43+
}
44+
45+
publishing {
46+
publications {
47+
publicationJdCore(MavenPublication) {
48+
groupId 'org.jd'
49+
artifactId 'jd-core'
50+
version project.version
51+
from components.java
52+
artifact tasks.sourceJar
53+
}
54+
}
55+
}
56+
57+
bintray {
58+
user = System.getProperty('bintray.user')
59+
key = System.getProperty('bintray.key')
60+
publications = ['publicationJdCore']
61+
62+
dryRun = false //[Default: false] Whether to run this as dry-run, without deploying
63+
publish = true //[Default: false] Whether version should be auto published after an upload
64+
override = false //[Default: false] Whether to override version artifacts already published
65+
66+
pkg {
67+
userOrg = 'java-decompiler'
68+
repo = 'maven'
69+
name = 'org.jd:jd-core'
70+
description = 'JD-Core is a JAVA decompiler written in JAVA.'
71+
licenses = ['GPL-3.0']
72+
73+
websiteUrl = 'https://github.com/java-decompiler/jd-core'
74+
issueTrackerUrl = 'https://github.com/java-decompiler/jd-core/issues'
75+
vcsUrl = 'https://github.com/java-decompiler/jd-core.git'
76+
77+
publicDownloadNumbers = true
78+
version {
79+
name = project.version
80+
released = new Date()
81+
}
82+
}
83+
}
84+
2885
// 'cleanIdea' task extension //
2986
cleanIdea.doFirst {
3087
delete project.name + '.iws'

0 commit comments

Comments
 (0)