Skip to content

Commit

Permalink
Released 0.8.15 with gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
sockeqwe committed Nov 8, 2018
1 parent f582575 commit 2a21e7e
Show file tree
Hide file tree
Showing 18 changed files with 206 additions and 1 deletion.
2 changes: 2 additions & 0 deletions annotation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ plugins {
java
}

apply(from = "../maven-push-java-lib.gradle")

dependencies {
compile(project(":core"))
}
3 changes: 3 additions & 0 deletions annotation/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
POM_NAME = Annotations for TikXml
POM_ARTIFACT_ID = annotation
POM_PACKAGING = jar
1 change: 1 addition & 0 deletions autovalue/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
java
id("kotlin")
}
apply(from = "../maven-push-java-lib.gradle")

dependencies {
compile(project(":core"))
Expand Down
3 changes: 3 additions & 0 deletions autovalue/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
POM_NAME = AutoValue Annotation Processor Plugin
POM_ARTIFACT_ID = auto-value-tikxml
POM_PACKAGING = jar
3 changes: 3 additions & 0 deletions converters/date-rfc3339/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ plugins {
java
}

apply(from = "$rootDir/maven-push-java-lib.gradle")


dependencies {
implementation(project(":core"))
testCompile(Deps.junit)
Expand Down
3 changes: 3 additions & 0 deletions converters/date-rfc3339/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
POM_NAME = Date TypeConverter for rfc3393 format
POM_ARTIFACT_ID = auto-value-tikxml
POM_PACKAGING = jar
2 changes: 2 additions & 0 deletions converters/htmlescape/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ plugins {
java
}

apply(from = "$rootDir/maven-push-java-lib.gradle")

dependencies {
implementation(project(":core"))
testCompile(Deps.junit)
Expand Down
3 changes: 3 additions & 0 deletions converters/htmlescape/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
POM_NAME = String Converter that escapes html characters
POM_ARTIFACT_ID = converter-htmlescape
POM_PACKAGING = jar
4 changes: 3 additions & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ plugins {
java
}

apply(from = "$rootDir/maven-push-java-lib.gradle")

dependencies {
compile(Deps.okio)
testImplementation(Deps.junit)
testImplementation(Deps.assertj)
}
}
3 changes: 3 additions & 0 deletions core/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
POM_NAME = Simple API to read and write XML
POM_ARTIFACT_ID = core
POM_PACKAGING = jar
37 changes: 37 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Project-wide Gradle settings.

# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.

# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m

org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

# When configured, Gradle will run in incubating parallel mode.
# 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

VERSION_NAME=0.8.16-SNAPSHOT
GROUP=com.tickaroo.tikxml

POM_DESCRIPTION=A modern XML API for Android and Java
POM_URL=https://github.com/Tickaroo/tikxml
POM_SCM_URL=https://github.com/Tickaroo/tikxml
POM_SCM_CONNECTION=scm:git@github.com:Tickaroo/tikxml.git
POM_SCM_DEV_CONNECTION=scm:git@github.com:Tickaroo/tikxml.git
POM_LICENCE_NAME=The Apache Software License, Version 2.0
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
POM_LICENCE_DIST=repo
POM_DEVELOPER_ID=tickaroo
POM_DEVELOPER_NAME=Tickaroo

android.enableAapt2=false

signing.keyId=E1FB7CBA
128 changes: 128 additions & 0 deletions maven-push-java-lib.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
/*
* Copyright 2013 Chris Banes
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

apply plugin: 'maven'
apply plugin: 'signing'

def isReleaseBuild() {
return VERSION_NAME.contains("SNAPSHOT") == false
}

def getReleaseRepositoryUrl() {
return hasProperty('RELEASE_REPOSITORY_URL') ? RELEASE_REPOSITORY_URL :
"https://oss.sonatype.org/service/local/staging/deploy/maven2/"
}

def getSnapshotRepositoryUrl() {
return hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL :
"https://oss.sonatype.org/content/repositories/snapshots/"
}

def getRepositoryUsername() {
return hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : ""
}

def getRepositoryPassword() {
return hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : ""
}

afterEvaluate { project ->
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }

pom.groupId = GROUP
pom.artifactId = POM_ARTIFACT_ID
pom.version = VERSION_NAME

repository(url: getReleaseRepositoryUrl()) {
authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())
}
snapshotRepository(url: getSnapshotRepositoryUrl()) {
authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())
}

pom.project {
name POM_NAME
packaging POM_PACKAGING
description POM_DESCRIPTION
url POM_URL

scm {
url POM_SCM_URL
connection POM_SCM_CONNECTION
developerConnection POM_SCM_DEV_CONNECTION
}

licenses {
license {
name POM_LICENCE_NAME
url POM_LICENCE_URL
distribution POM_LICENCE_DIST
}
}

developers {
developer {
id POM_DEVELOPER_ID
name POM_DEVELOPER_NAME
}
}
}


// Resolve dependencies to other modules
pom.whenConfigured { pom ->
pom.dependencies.findAll { dep -> dep.groupId == rootProject.name }.collect { dep ->
dep.groupId = pom.groupId = project.GROUP
dep.version = pom.version = project.VERSION_NAME
}
}
}
}
}

signing {
required { isReleaseBuild() && gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
}

task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc

if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
}

}

task sourceJar (type : Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}

artifacts {
archives javadocJar
archives sourceJar
}

}
2 changes: 2 additions & 0 deletions processor-common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ plugins {
id("kotlin")
}

apply(from = "$rootDir/maven-push-java-lib.gradle")

dependencies {
compile(project(":annotation"))
compile(Deps.kotlinStdLib)
Expand Down
3 changes: 3 additions & 0 deletions processor-common/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
POM_NAME = Annotation Processor to generate TypeAdapters
POM_ARTIFACT_ID = processor
POM_PACKAGING = jar
2 changes: 2 additions & 0 deletions processor/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ plugins {
id("kotlin")
}

apply(from = "$rootDir/maven-push-java-lib.gradle")

dependencies {
compile(project(":core"))
compile(project(":annotation"))
Expand Down
3 changes: 3 additions & 0 deletions processor/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
POM_NAME = Some common annotation processor logic that is shared with regular annotation processor and auto value plugin
POM_ARTIFACT_ID = processor-common
POM_PACKAGING = jar
2 changes: 2 additions & 0 deletions retrofit-converter/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ plugins {
java
}

apply(from = "$rootDir/maven-push-java-lib.gradle")

dependencies {
compile(project(":core"))
compile(project(":annotation"))
Expand Down
3 changes: 3 additions & 0 deletions retrofit-converter/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
POM_NAME = Some common annotation processor logic that is shared with regular annotation processor and auto value plugin
POM_ARTIFACT_ID = retrofit-converter
POM_PACKAGING = jar

0 comments on commit 2a21e7e

Please sign in to comment.