Skip to content

Commit

Permalink
Sunsetting jCenter / Bintray
Browse files Browse the repository at this point in the history
  • Loading branch information
mkarg committed Aug 8, 2024
1 parent 588db6c commit b8c23ad
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 96 deletions.
25 changes: 0 additions & 25 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ val kotlinVer by extra { kotlinVersion }

buildscript {
repositories {
jcenter()
mavenCentral()
maven { setUrl("https://plugins.gradle.org/m2") }
}
Expand All @@ -45,7 +44,6 @@ java {
}

repositories {
jcenter()
mavenCentral()
maven { setUrl("https://plugins.gradle.org/m2") }
}
Expand All @@ -55,7 +53,6 @@ plugins {
`java-library`
`maven-publish`
signing
id("com.jfrog.bintray") version "1.8.3" // Don't use 1.8.4, crash when publishing
id("biz.aQute.bnd.builder") version "5.1.2"
}

Expand Down Expand Up @@ -86,7 +83,6 @@ tasks.withType<Test> {

//
// Releases:
// ./gradlew bintrayUpload (to JCenter)
// ./gradlew publish (to Sonatype, then go to https://s01.oss.sonatype.org/index.html#stagingRepositories to publish)
// Make sure that ~/.gradle/gradle.properties:
// signing.keyId=XXXXXXXX
Expand All @@ -96,27 +92,6 @@ tasks.withType<Test> {
// (gpg --list-keys, last eight digits of the key)
//

bintray {
user = project.findProperty("bintrayUser")?.toString()
key = project.findProperty("bintrayApiKey")?.toString()
dryRun = false
publish = false

setPublications("custom")

with(pkg) {
repo = "maven"
name = This.artifactId
with(version) {
name = This.version
desc = This.description
with(gpg) {
sign = true
}
}
}
}

val sourcesJar by tasks.creating(Jar::class) {
group = JavaBasePlugin.DOCUMENTATION_GROUP
description = "Assembles sources JAR"
Expand Down
63 changes: 0 additions & 63 deletions gradle/publishing-jcenter.gradle

This file was deleted.

2 changes: 0 additions & 2 deletions gradle/publishing.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ artifacts {

buildscript {
repositories {
jcenter()

}
dependencies {
Expand All @@ -52,5 +51,4 @@ buildscript {
}

apply from: 'gradle/publishing-maven.gradle'
apply from: 'gradle/publishing-jcenter.gradle'

6 changes: 0 additions & 6 deletions kobalt/src/Build.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import com.beust.kobalt.plugin.java.javaCompiler
import com.beust.kobalt.plugin.osgi.osgi
import com.beust.kobalt.plugin.packaging.assemble
import com.beust.kobalt.plugin.publish.bintray
import com.beust.kobalt.project
import org.apache.maven.model.Developer
import org.apache.maven.model.License
Expand All @@ -26,11 +25,6 @@ val jcommander = project {
}
}

bintray {
publish = true
sign = true
}

javaCompiler {
args("-target", "1.8", "-source", "1.8", "-g", "-encoding", "utf-8")
}
Expand Down

0 comments on commit b8c23ad

Please sign in to comment.