Skip to content

Commit 2a21e7e

Browse files
committed
Released 0.8.15 with gradle
1 parent f582575 commit 2a21e7e

18 files changed

+206
-1
lines changed

annotation/build.gradle.kts

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ plugins {
22
java
33
}
44

5+
apply(from = "../maven-push-java-lib.gradle")
6+
57
dependencies {
68
compile(project(":core"))
79
}

annotation/gradle.properties

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
POM_NAME = Annotations for TikXml
2+
POM_ARTIFACT_ID = annotation
3+
POM_PACKAGING = jar

autovalue/build.gradle.kts

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ plugins {
22
java
33
id("kotlin")
44
}
5+
apply(from = "../maven-push-java-lib.gradle")
56

67
dependencies {
78
compile(project(":core"))

autovalue/gradle.properties

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
POM_NAME = AutoValue Annotation Processor Plugin
2+
POM_ARTIFACT_ID = auto-value-tikxml
3+
POM_PACKAGING = jar

converters/date-rfc3339/build.gradle.kts

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ plugins {
22
java
33
}
44

5+
apply(from = "$rootDir/maven-push-java-lib.gradle")
6+
7+
58
dependencies {
69
implementation(project(":core"))
710
testCompile(Deps.junit)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
POM_NAME = Date TypeConverter for rfc3393 format
2+
POM_ARTIFACT_ID = auto-value-tikxml
3+
POM_PACKAGING = jar

converters/htmlescape/build.gradle.kts

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ plugins {
22
java
33
}
44

5+
apply(from = "$rootDir/maven-push-java-lib.gradle")
6+
57
dependencies {
68
implementation(project(":core"))
79
testCompile(Deps.junit)
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
POM_NAME = String Converter that escapes html characters
2+
POM_ARTIFACT_ID = converter-htmlescape
3+
POM_PACKAGING = jar

core/build.gradle.kts

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@ plugins {
22
java
33
}
44

5+
apply(from = "$rootDir/maven-push-java-lib.gradle")
6+
57
dependencies {
68
compile(Deps.okio)
79
testImplementation(Deps.junit)
810
testImplementation(Deps.assertj)
9-
}
11+
}

core/gradle.properties

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
POM_NAME = Simple API to read and write XML
2+
POM_ARTIFACT_ID = core
3+
POM_PACKAGING = jar

gradle.properties

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Project-wide Gradle settings.
2+
3+
# IDE (e.g. Android Studio) users:
4+
# Gradle settings configured through the IDE *will override*
5+
# any settings specified in this file.
6+
7+
# For more details on how to configure your build environment visit
8+
# http://www.gradle.org/docs/current/userguide/build_environment.html
9+
10+
# Specifies the JVM arguments used for the daemon process.
11+
# The setting is particularly useful for tweaking memory settings.
12+
# Default value: -Xmx10248m -XX:MaxPermSize=256m
13+
14+
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
15+
16+
# When configured, Gradle will run in incubating parallel mode.
17+
# This option should only be used with decoupled projects. More details, visit
18+
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
19+
# org.gradle.parallel=true
20+
21+
VERSION_NAME=0.8.16-SNAPSHOT
22+
GROUP=com.tickaroo.tikxml
23+
24+
POM_DESCRIPTION=A modern XML API for Android and Java
25+
POM_URL=https://github.com/Tickaroo/tikxml
26+
POM_SCM_URL=https://github.com/Tickaroo/tikxml
27+
POM_SCM_CONNECTION=scm:[email protected]:Tickaroo/tikxml.git
28+
POM_SCM_DEV_CONNECTION=scm:[email protected]:Tickaroo/tikxml.git
29+
POM_LICENCE_NAME=The Apache Software License, Version 2.0
30+
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
31+
POM_LICENCE_DIST=repo
32+
POM_DEVELOPER_ID=tickaroo
33+
POM_DEVELOPER_NAME=Tickaroo
34+
35+
android.enableAapt2=false
36+
37+
signing.keyId=E1FB7CBA

maven-push-java-lib.gradle

+128
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
/*
2+
* Copyright 2013 Chris Banes
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
apply plugin: 'maven'
18+
apply plugin: 'signing'
19+
20+
def isReleaseBuild() {
21+
return VERSION_NAME.contains("SNAPSHOT") == false
22+
}
23+
24+
def getReleaseRepositoryUrl() {
25+
return hasProperty('RELEASE_REPOSITORY_URL') ? RELEASE_REPOSITORY_URL :
26+
"https://oss.sonatype.org/service/local/staging/deploy/maven2/"
27+
}
28+
29+
def getSnapshotRepositoryUrl() {
30+
return hasProperty('SNAPSHOT_REPOSITORY_URL') ? SNAPSHOT_REPOSITORY_URL :
31+
"https://oss.sonatype.org/content/repositories/snapshots/"
32+
}
33+
34+
def getRepositoryUsername() {
35+
return hasProperty('NEXUS_USERNAME') ? NEXUS_USERNAME : ""
36+
}
37+
38+
def getRepositoryPassword() {
39+
return hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : ""
40+
}
41+
42+
afterEvaluate { project ->
43+
uploadArchives {
44+
repositories {
45+
mavenDeployer {
46+
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
47+
48+
pom.groupId = GROUP
49+
pom.artifactId = POM_ARTIFACT_ID
50+
pom.version = VERSION_NAME
51+
52+
repository(url: getReleaseRepositoryUrl()) {
53+
authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())
54+
}
55+
snapshotRepository(url: getSnapshotRepositoryUrl()) {
56+
authentication(userName: getRepositoryUsername(), password: getRepositoryPassword())
57+
}
58+
59+
pom.project {
60+
name POM_NAME
61+
packaging POM_PACKAGING
62+
description POM_DESCRIPTION
63+
url POM_URL
64+
65+
scm {
66+
url POM_SCM_URL
67+
connection POM_SCM_CONNECTION
68+
developerConnection POM_SCM_DEV_CONNECTION
69+
}
70+
71+
licenses {
72+
license {
73+
name POM_LICENCE_NAME
74+
url POM_LICENCE_URL
75+
distribution POM_LICENCE_DIST
76+
}
77+
}
78+
79+
developers {
80+
developer {
81+
id POM_DEVELOPER_ID
82+
name POM_DEVELOPER_NAME
83+
}
84+
}
85+
}
86+
87+
88+
// Resolve dependencies to other modules
89+
pom.whenConfigured { pom ->
90+
pom.dependencies.findAll { dep -> dep.groupId == rootProject.name }.collect { dep ->
91+
dep.groupId = pom.groupId = project.GROUP
92+
dep.version = pom.version = project.VERSION_NAME
93+
}
94+
}
95+
}
96+
}
97+
}
98+
99+
signing {
100+
required { isReleaseBuild() && gradle.taskGraph.hasTask("uploadArchives") }
101+
sign configurations.archives
102+
}
103+
104+
task javadocJar(type: Jar) {
105+
classifier = 'javadoc'
106+
from javadoc
107+
108+
if (JavaVersion.current().isJava8Compatible()) {
109+
allprojects {
110+
tasks.withType(Javadoc) {
111+
options.addStringOption('Xdoclint:none', '-quiet')
112+
}
113+
}
114+
}
115+
116+
}
117+
118+
task sourceJar (type : Jar) {
119+
classifier = 'sources'
120+
from sourceSets.main.allSource
121+
}
122+
123+
artifacts {
124+
archives javadocJar
125+
archives sourceJar
126+
}
127+
128+
}

processor-common/build.gradle.kts

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ plugins {
33
id("kotlin")
44
}
55

6+
apply(from = "$rootDir/maven-push-java-lib.gradle")
7+
68
dependencies {
79
compile(project(":annotation"))
810
compile(Deps.kotlinStdLib)

processor-common/gradle.properties

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
POM_NAME = Annotation Processor to generate TypeAdapters
2+
POM_ARTIFACT_ID = processor
3+
POM_PACKAGING = jar

processor/build.gradle.kts

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ plugins {
33
id("kotlin")
44
}
55

6+
apply(from = "$rootDir/maven-push-java-lib.gradle")
7+
68
dependencies {
79
compile(project(":core"))
810
compile(project(":annotation"))

processor/gradle.properties

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
POM_NAME = Some common annotation processor logic that is shared with regular annotation processor and auto value plugin
2+
POM_ARTIFACT_ID = processor-common
3+
POM_PACKAGING = jar

retrofit-converter/build.gradle.kts

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ plugins {
22
java
33
}
44

5+
apply(from = "$rootDir/maven-push-java-lib.gradle")
6+
57
dependencies {
68
compile(project(":core"))
79
compile(project(":annotation"))

retrofit-converter/gradle.properties

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
POM_NAME = Some common annotation processor logic that is shared with regular annotation processor and auto value plugin
2+
POM_ARTIFACT_ID = retrofit-converter
3+
POM_PACKAGING = jar

0 commit comments

Comments
 (0)