Skip to content

Commit

Permalink
config bintray
Browse files Browse the repository at this point in the history
  • Loading branch information
tarek360 committed Sep 22, 2018
1 parent 22cf62e commit 6f72970
Show file tree
Hide file tree
Showing 25 changed files with 110 additions and 72 deletions.
3 changes: 0 additions & 3 deletions app/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
pom_name=Koshry GitDiff Library
pom_artifact_id=gitdiff
pom_packaging=jar
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ buildscript {
}
dependencies {
classpath(kotlin("gradle-plugin", version = kotlinVersion))
classpath("com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.1")
}
}

Expand Down
2 changes: 1 addition & 1 deletion ci-detector/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
jacoco
}

apply { from("../mvn-push.gradle") }
apply { from("../push.gradle") }

repositories {
mavenLocal()
Expand Down
4 changes: 1 addition & 3 deletions ci-detector/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
pom_name=Koshry GitDiff Library
pom_artifact_id=gitdiff
pom_packaging=jar
ARTIFACT_ID=ci-detector
2 changes: 1 addition & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
jacoco
}

apply { from("../mvn-push.gradle") }
apply { from("../push.gradle") }

repositories {
mavenLocal()
Expand Down
4 changes: 1 addition & 3 deletions core/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
pom_name=Koshry Core Library
pom_artifact_id=core
pom_packaging=jar
ARTIFACT_ID=core
2 changes: 1 addition & 1 deletion gitdiff-parser/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
jacoco
}

apply { from("../mvn-push.gradle") }
apply { from("../push.gradle") }

repositories {
mavenLocal()
Expand Down
4 changes: 1 addition & 3 deletions gitdiff-parser/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
pom_name=Koshry GitDiff Library
pom_artifact_id=gitdiff
pom_packaging=jar
ARTIFACT_ID=gitdiff-parser
2 changes: 1 addition & 1 deletion gitdiff-provider/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
jacoco
}

apply { from("../mvn-push.gradle") }
apply { from("../push.gradle") }

repositories {
mavenLocal()
Expand Down
4 changes: 1 addition & 3 deletions gitdiff-provider/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
pom_name=Koshry gitdiff-provider Library
pom_artifact_id=gitdiff-provider
pom_packaging=jar
ARTIFACT_ID=gitdiff-provider
2 changes: 1 addition & 1 deletion githost/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
jacoco
}

apply { from("../mvn-push.gradle") }
apply { from("../push.gradle") }

repositories {
mavenLocal()
Expand Down
4 changes: 1 addition & 3 deletions githost/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
pom_name=Koshry GitDiff Library
pom_artifact_id=githost
pom_packaging=jar
ARTIFACT_ID=githost
12 changes: 5 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ org.gradle.jvmargs=-Xmx1536m
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
artifact_name=koshry
artifact_group=io.github.tarek360
artifact_version=0.0.1
build_number=0

pom_description=Koshry for CI
pom_url=https://tarek360.github.io
GROUP_ID=io.github.tarek360.koshry
VERSION=0.0.1
BUILD_NUMBER=0
DESCRIPTION=Koshry for CI
BINTRAY_REPO=Koshry
2 changes: 1 addition & 1 deletion koshry/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
jacoco
}

apply { from("../mvn-push.gradle") }
apply { from("../push.gradle") }

repositories {
mavenLocal()
Expand Down
4 changes: 1 addition & 3 deletions koshry/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
pom_name=Koshry Library
pom_artifact_id=koshry
pom_packaging=jar
ARTIFACT_ID=koshry
22 changes: 0 additions & 22 deletions mvn-push.gradle

This file was deleted.

84 changes: 84 additions & 0 deletions push.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

javadoc.failOnError = false
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}

artifacts {
archives sourcesJar
archives javadocJar
}


def pomConfig = {
licenses {
license {
name "The Apache Software License, Version 2.0"
url "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution "repo"
}
}
developers {
developer {
id "tarek360"
name "tarek360"
email "[email protected]"
}
}

scm {
url "https://github.com/tarek360/koshry"
}
}

publishing {
publications {
mavenPublication(MavenPublication) {
from components.java
artifact sourcesJar {
classifier "sources"
}
artifact javadocJar {
classifier "javadoc"
}
groupId GROUP_ID
artifactId ARTIFACT_ID
version VERSION
pom.withXml {
def root = asNode()
root.appendNode('description', 'Koshry for CI!')
root.appendNode('name', 'Koshry')
root.appendNode('url', 'https://github.com/tarek360/koshry')
root.children().last() + pomConfig
}
}
}
}

bintray {
user = bintray_user
key = bintray_key
publications = ['mavenPublication']
override = true
pkg {
repo = BINTRAY_REPO
name = GROUP_ID
userOrg = 'tarek360'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/tarek360/koshry.git'
version {
name = VERSION
desc = VERSION
released = new Date()
}
}

}
2 changes: 1 addition & 1 deletion rules-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
jacoco
}

apply { from("../mvn-push.gradle") }
apply { from("../push.gradle") }

repositories {
mavenLocal()
Expand Down
4 changes: 1 addition & 3 deletions rules-core/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
pom_name=Koshry Core Rules
pom_artifact_id=core
pom_packaging=jar
ARTIFACT_ID=rules-core
2 changes: 1 addition & 1 deletion rules-test/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
jacoco
}

apply { from("../mvn-push.gradle") }
apply { from("../push.gradle") }

repositories {
mavenLocal()
Expand Down
4 changes: 1 addition & 3 deletions rules-test/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
pom_name=Koshry Rules Test
pom_artifact_id=rules-test
pom_packaging=jar
ARTIFACT_ID=rules-test
2 changes: 1 addition & 1 deletion rules/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
jacoco
}

apply { from("../mvn-push.gradle") }
apply { from("../push.gradle") }

repositories {
mavenLocal()
Expand Down
4 changes: 1 addition & 3 deletions rules/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
pom_name=Koshry Rules
pom_artifact_id=rules
pom_packaging=jar
ARTIFACT_ID=rules
2 changes: 1 addition & 1 deletion test-coverage-rule/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
jacoco
}

apply { from("../mvn-push.gradle") }
apply { from("../push.gradle") }

repositories {
mavenLocal()
Expand Down
4 changes: 1 addition & 3 deletions test-coverage-rule/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
pom_name=Koshry Test Coverage Rule
pom_artifact_id=test-coverage
pom_packaging=jar
ARTIFACT_ID=test-coverage-rule

0 comments on commit 6f72970

Please sign in to comment.