Skip to content

Commit

Permalink
Build script: replace Maven and Bintray publishing with Jitpack
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Anischevici committed Apr 4, 2018
1 parent 5d397e0 commit 6fe84a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 49 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ repositories {
jcenter()
maven { url "https://jitpack.io" }
}
dependencies {
implementation 'com.github.XDex:socketcluster-client-java:2.0.0'
implementation 'com.github.XDex:SocketclusterClientJava:2.0.0'
}
```

Expand Down
50 changes: 2 additions & 48 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,22 @@ buildscript {
}
}

plugins {
id "com.jfrog.bintray" version "1.7"
}

allprojects {
tasks.withType(JavaCompile) {
sourceCompatibility = '1.7'
targetCompatibility = '1.7'
}
}

group 'com.github.XDex'
version '2.0.0'
group = 'com.github.XDex'
version = '2.0.0'

allprojects {
repositories {
jcenter()
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
}

task wrapper(type: Wrapper) {
Expand All @@ -47,47 +42,6 @@ jar {
}
}

publishing {
publications {
MyPublication(MavenPublication) {
from components.java
groupId 'com.github.XDex'
artifactId 'SocketclusterClientJava'
version '2.0.0'

artifact sourceJar {
classifier "sources"
}

artifact javadocJar {
classifier "javadoc"
}
}
}
}


bintray{
user=System.getenv('BINTRAY_USER')
key=System.getenv('BINTRAY_API_KEY')
// configurations = ['archives']
publications = ['MyPublication']
pkg {
repo = 'Maven'
name = 'socketcluster-client'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/sacOO7/socketcluster-client-java.git'
publicDownloadNumbers = true

version {
name = '2.0.0'
desc = 'Switched to Jackson and implemented sc-min-bin codec support'
vcsTag = '2.0.0'
}

}
}

dependencies {
compile 'com.neovisionaries:nv-websocket-client:2.3'
compile 'org.msgpack:jackson-dataformat-msgpack:0.8.15'
Expand Down

0 comments on commit 6fe84a7

Please sign in to comment.