Skip to content

Commit 6fe84a7

Browse files
author
Andrei Anischevici
committed
Build script: replace Maven and Bintray publishing with Jitpack
1 parent 5d397e0 commit 6fe84a7

File tree

2 files changed

+4
-49
lines changed

2 files changed

+4
-49
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ repositories {
3131
jcenter()
3232
maven { url "https://jitpack.io" }
3333
}
34+
3435
dependencies {
35-
implementation 'com.github.XDex:socketcluster-client-java:2.0.0'
36+
implementation 'com.github.XDex:SocketclusterClientJava:2.0.0'
3637
}
3738
```
3839

build.gradle

Lines changed: 2 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,22 @@ buildscript {
44
}
55
}
66

7-
plugins {
8-
id "com.jfrog.bintray" version "1.7"
9-
}
10-
117
allprojects {
128
tasks.withType(JavaCompile) {
139
sourceCompatibility = '1.7'
1410
targetCompatibility = '1.7'
1511
}
1612
}
1713

18-
group 'com.github.XDex'
19-
version '2.0.0'
14+
group = 'com.github.XDex'
15+
version = '2.0.0'
2016

2117
allprojects {
2218
repositories {
2319
jcenter()
2420
}
2521
apply plugin: 'java'
2622
apply plugin: 'maven'
27-
apply plugin: 'maven-publish'
2823
}
2924

3025
task wrapper(type: Wrapper) {
@@ -47,47 +42,6 @@ jar {
4742
}
4843
}
4944

50-
publishing {
51-
publications {
52-
MyPublication(MavenPublication) {
53-
from components.java
54-
groupId 'com.github.XDex'
55-
artifactId 'SocketclusterClientJava'
56-
version '2.0.0'
57-
58-
artifact sourceJar {
59-
classifier "sources"
60-
}
61-
62-
artifact javadocJar {
63-
classifier "javadoc"
64-
}
65-
}
66-
}
67-
}
68-
69-
70-
bintray{
71-
user=System.getenv('BINTRAY_USER')
72-
key=System.getenv('BINTRAY_API_KEY')
73-
// configurations = ['archives']
74-
publications = ['MyPublication']
75-
pkg {
76-
repo = 'Maven'
77-
name = 'socketcluster-client'
78-
licenses = ['Apache-2.0']
79-
vcsUrl = 'https://github.com/sacOO7/socketcluster-client-java.git'
80-
publicDownloadNumbers = true
81-
82-
version {
83-
name = '2.0.0'
84-
desc = 'Switched to Jackson and implemented sc-min-bin codec support'
85-
vcsTag = '2.0.0'
86-
}
87-
88-
}
89-
}
90-
9145
dependencies {
9246
compile 'com.neovisionaries:nv-websocket-client:2.3'
9347
compile 'org.msgpack:jackson-dataformat-msgpack:0.8.15'

0 commit comments

Comments
 (0)