-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
59fe77c
commit 02bdbe6
Showing
4 changed files
with
89 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ apply plugin: 'maven' | |
apply plugin: 'signing' | ||
|
||
group = 'org.greenrobot' | ||
archivesBaseName = 'greendao-generator-encryption' | ||
version = '3.0.0-beta3' | ||
archivesBaseName = 'greendao-generator' | ||
version = '3.0.0' | ||
sourceCompatibility = 1.7 | ||
|
||
repositories { | ||
|
@@ -36,7 +36,7 @@ test { | |
doFirst { | ||
mkdir 'test-out' | ||
} | ||
doLast{ | ||
doLast { | ||
delete 'test-out' | ||
} | ||
} | ||
|
@@ -70,24 +70,17 @@ uploadArchives { | |
mavenDeployer { | ||
// Basic definitions are defined in root project | ||
pom.project { | ||
name 'greenDAO Generator' | ||
packaging 'jar' | ||
description 'Code generator for greenDAO, the light and fast ORM for Android' | ||
name 'greenDAO Generator' | ||
description 'Code generator for greenDAO, the light and fast ORM for Android' | ||
|
||
scm { | ||
url 'https://github.com/greenrobot/greenDAO' | ||
connection 'scm:[email protected]:greenrobot/greenDAO.git' | ||
developerConnection 'scm:[email protected]:greenrobot/greenDAO.git' | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'GNU General Public License, Version 3' | ||
url 'http://www.gnu.org/licenses/gpl.txt' | ||
distribution 'repo' | ||
} | ||
} | ||
} | ||
licenses { | ||
license { | ||
name 'GNU General Public License, Version 3' | ||
url 'http://www.gnu.org/licenses/gpl.txt' | ||
distribution 'repo' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,56 +44,59 @@ subprojects { | |
} | ||
} | ||
|
||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
def isSnapshot = version.endsWith('-SNAPSHOT') | ||
def sonatypeRepositoryUrl = isSnapshot ? | ||
"https://oss.sonatype.org/content/repositories/snapshots/" | ||
: "https://oss.sonatype.org/service/local/staging/deploy/maven2/" | ||
if (project.hasProperty('preferedRepo') && project.hasProperty('preferedUsername') | ||
&& project.hasProperty('preferedPassword')) { | ||
configuration = configurations.deployerJars | ||
repository(url: preferedRepo) { | ||
authentication(userName: preferedUsername, password: preferedPassword) | ||
} | ||
} else if (project.hasProperty('sonatypeUsername') && project.hasProperty('sonatypePassword')) { | ||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | ||
repository(url: sonatypeRepositoryUrl) { | ||
authentication(userName: sonatypeUsername, password: sonatypePassword) | ||
// Use afterEvaluate or all dependencies will be lost in the generated POM | ||
afterEvaluate { | ||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
def isSnapshot = version.endsWith('-SNAPSHOT') | ||
def sonatypeRepositoryUrl = isSnapshot ? | ||
"https://oss.sonatype.org/content/repositories/snapshots/" | ||
: "https://oss.sonatype.org/service/local/staging/deploy/maven2/" | ||
if (project.hasProperty('preferedRepo') && project.hasProperty('preferedUsername') | ||
&& project.hasProperty('preferedPassword')) { | ||
configuration = configurations.deployerJars | ||
repository(url: preferedRepo) { | ||
authentication(userName: preferedUsername, password: preferedPassword) | ||
} | ||
} else if (project.hasProperty('sonatypeUsername') && project.hasProperty('sonatypePassword')) { | ||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | ||
repository(url: sonatypeRepositoryUrl) { | ||
authentication(userName: sonatypeUsername, password: sonatypePassword) | ||
} | ||
} else { | ||
println "Settings sonatypeUsername/sonatypePassword missing/incomplete for ${project.name}" | ||
} | ||
} else { | ||
println "Settings sonatypeUsername/sonatypePassword missing/incomplete for ${project.name}" | ||
} | ||
|
||
pom.project { | ||
packaging 'jar' | ||
url 'http://greenrobot.org/greendao' | ||
pom.project { | ||
packaging 'jar' | ||
url 'http://greenrobot.org/greendao' | ||
|
||
scm { | ||
url 'https://github.com/greenrobot/greenDAO' | ||
connection 'scm:[email protected]:greenrobot/greenDAO.git' | ||
developerConnection 'scm:[email protected]:greenrobot/greenDAO.git' | ||
} | ||
scm { | ||
url 'https://github.com/greenrobot/greenDAO' | ||
connection 'scm:[email protected]:greenrobot/greenDAO.git' | ||
developerConnection 'scm:[email protected]:greenrobot/greenDAO.git' | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'greenrobot' | ||
name 'greenrobot' | ||
developers { | ||
developer { | ||
id 'greenrobot' | ||
name 'greenrobot' | ||
} | ||
} | ||
} | ||
|
||
issueManagement { | ||
system 'GitHub Issues' | ||
url 'https://github.com/greenrobot/greenDAO/issues' | ||
} | ||
issueManagement { | ||
system 'GitHub Issues' | ||
url 'https://github.com/greenrobot/greenDAO/issues' | ||
} | ||
|
||
organization { | ||
name 'greenrobot' | ||
url 'http://greenrobot.org' | ||
organization { | ||
name 'greenrobot' | ||
url 'http://greenrobot.org' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters