Skip to content

Commit

Permalink
Remove jcenter, update libs for central
Browse files Browse the repository at this point in the history
  • Loading branch information
rocketraman committed Jan 17, 2022
1 parent fa8d7af commit 0cba420
Showing 1 changed file with 2 additions and 30 deletions.
32 changes: 2 additions & 30 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ buildscript {
apply from: 'gradle/versions.gradle'

repositories {
mavenLocal()
mavenCentral()
jcenter()
maven { url 'https://jetbrains.jfrog.io/jetbrains/spek-snapshots' }
}

Expand All @@ -17,9 +15,8 @@ buildscript {
}

plugins {
id 'com.github.kt3k.coveralls' version '2.10.1'
id 'com.github.ben-manes.versions' version '0.28.0'
id "com.jfrog.bintray" version "1.8.4"
id 'com.github.kt3k.coveralls' version '2.12.0'
id 'com.github.ben-manes.versions' version '0.41.0'
}

apply plugin: 'jacoco'
Expand Down Expand Up @@ -47,7 +44,6 @@ subprojects { p ->
apply plugin: 'jacoco'
apply plugin: 'org.junit.platform.gradle.plugin'
apply plugin: "maven-publish"
apply plugin: "com.jfrog.bintray"

sourceCompatibility = 1.8

Expand All @@ -58,29 +54,6 @@ subprojects { p ->
maven { url 'https://jetbrains.jfrog.io/jetbrains/spek-snapshots' }
}

bintray {
user = 'jdiazcano'
key = System.getenv("BINTRAY_KEY")
publications = ["kotlinPublish"]
//configurations = ["archives"]
publish = true
override = true
pkg {
repo = 'cfg4k'
name = p.name
userOrg = 'jdiazcano'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/jdiazcano/cfg4k.git'
publicDownloadNumbers = true
version {
name = project.artifactVersion
desc = 'Cfg4k is a configuration library made for Kotlin in Kotlin!'
released = new Date()
vcsTag = project.artifactVersion
}
}
}

// custom tasks for creating source/javadoc jars
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
Expand Down Expand Up @@ -126,5 +99,4 @@ subprojects { p ->
def activeSubprojects = subprojects.findAll { it.name.startsWith("cfg4k") }
def subprojectsExecFiles = files( activeSubprojects.collect { "${it.name}/build/jacoco/junitPlatformTest.exec" } )

task publish(dependsOn: activeSubprojects.collect { it.tasks.findByPath("bintrayUpload") }) {}
task publishLocal(dependsOn: activeSubprojects.collect { it.tasks.findByPath("publishToMavenLocal") }) {}

0 comments on commit 0cba420

Please sign in to comment.