Skip to content

Commit

Permalink
released v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Kosh authored and Kosh committed Sep 28, 2016
1 parent 4af40da commit 7f62556
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 19 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@ Android Library to help you with your date & time pickers while retaining the in

#### Gradle
```groovy
'coming soon'
compile 'com.github.k0shk0sh:RetainedDateTimePickers:1.0.0'
```

#### Maven
```xml
<coming soon/>
<dependency>
<groupId>com.github.k0shk0sh</groupId>
<artifactId>RetainedDateTimePickers</artifactId>
<version>1.0.0</version>
<type>aar</type>
</dependency>
```

Screenshots
Expand Down
1 change: 1 addition & 0 deletions datetimepicker/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'com.android.library'
apply from: 'maven-push.gradle'

android {
compileSdkVersion 24
Expand Down
3 changes: 3 additions & 0 deletions datetimepicker/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
POM_NAME=RetainedDateTimePickers
POM_ARTIFACT_ID=RetainedDateTimePickers
POM_PACKAGING=aar
96 changes: 96 additions & 0 deletions datetimepicker/maven-push.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
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
}
}
}
}
}
}

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

//task androidJavadocs(type: Javadoc) {
//source = android.sourceSets.main.allJava
//}

//task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) {
//classifier = 'javadoc'
//from androidJavadocs.destinationDir
//}

task androidSourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.sourceFiles
}

artifacts {
archives androidSourcesJar
}
}
30 changes: 13 additions & 17 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
# 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.
org.gradle.jvmargs=-Xmx1536m

# 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=1.0.0
VERSION_CODE=1
GROUP=com.github.k0shk0sh
POM_DESCRIPTION=Android Library to help you with your date & time pickers while retaining the instance of the pickers on orientation change.
POM_URL=https://github.com/k0shk0sh/RetainedDateTimePickers
POM_SCM_URL=https://github.com/k0shk0sh/RetainedDateTimePickers
POM_SCM_CONNECTION=scm:git@github.com:k0shk0sh/RetainedDateTimePickers.git
POM_SCM_DEV_CONNECTION=scm:git@github.com:k0shk0sh/RetainedDateTimePickers.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=k0shk0sh
POM_DEVELOPER_NAME=Kosh

0 comments on commit 7f62556

Please sign in to comment.