This repository has been archived by the owner on Feb 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from novoda/add_release_plugin
Add release plugin
- Loading branch information
Showing
2 changed files
with
36 additions
and
91 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 |
---|---|---|
@@ -1,14 +1,19 @@ | ||
repositories { | ||
mavenCentral() | ||
maven { | ||
url "https://oss.sonatype.org/content/repositories/snapshots" | ||
buildscript { | ||
repositories { | ||
jcenter() | ||
} | ||
dependencies { | ||
classpath 'com.novoda:bintray-release:0.2.4' | ||
} | ||
} | ||
|
||
apply plugin: 'java' | ||
apply plugin: 'groovy' | ||
apply plugin: 'maven' | ||
apply plugin: 'signing' | ||
apply plugin: 'bintray-release' | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
compile 'org.xerial:sqlite-jdbc:3.8.7' | ||
|
@@ -20,92 +25,18 @@ dependencies { | |
} | ||
|
||
group = 'com.novoda' | ||
version = "0.0.1-SNAPSHOT" | ||
version = "0.0.1-beta" | ||
|
||
ext { | ||
sourceCompatibility = 1.6 | ||
targetCompatibility = 1.6 | ||
} | ||
|
||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
classifier = 'javadoc' | ||
from groovydoc | ||
} | ||
|
||
task sourcesJar(type: Jar) { | ||
from sourceSets.main.allSource | ||
classifier = 'sources' | ||
} | ||
|
||
artifacts { | ||
archives jar | ||
archives javadocJar | ||
archives sourcesJar | ||
} | ||
|
||
if (project.hasProperty("signing.keyId")) { | ||
signing { | ||
sign configurations.archives | ||
} | ||
} | ||
|
||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
|
||
// don't sign snapshots for now | ||
if (!version.endsWith('SNAPSHOT')) { | ||
beforeDeployment { deployment -> signing.signPom(deployment) } | ||
} | ||
|
||
if (project.hasProperty('nexusUsername')) { | ||
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots") { | ||
authentication(userName: nexusUsername, password: nexusPassword) | ||
} | ||
|
||
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") { | ||
authentication(userName: nexusUsername, password: nexusPassword) | ||
} | ||
} | ||
uniqueVersion = false | ||
|
||
pom.artifactId = 'sqlite-analyzer' | ||
pom.project { | ||
|
||
parent { | ||
groupId 'org.sonatype.oss' | ||
artifactId 'oss-parent' | ||
version '7' | ||
} | ||
|
||
name 'sqliteAnalyzer Gradle Plugin' | ||
packaging 'jar' | ||
description 'Code generation for sqlite database access.' | ||
url 'https://github.com/novoda/sqliteAnalyzer' | ||
|
||
scm { | ||
url 'https://github.com/novoda/sqliteAnalyzer' | ||
connection 'scm:https://[email protected]/novoda/sqliteAnalyzer.git' | ||
developerConnection 'scm:[email protected]:novoda/sqliteAnalyzer.git' | ||
} | ||
|
||
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 'devisnik' | ||
name 'Volker Leck' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
publish { | ||
userOrg = 'novoda' | ||
groupId = 'com.novoda' | ||
artifactId = 'sqlite-analyzer' | ||
version = project.version | ||
description = 'Code generation for Java/Android database access.' | ||
website = 'https://github.com/novoda/sqlite-analyzer' | ||
} | ||
|
||
|