Skip to content
This repository was archived by the owner on Feb 11, 2022. It is now read-only.

Commit 7a4da34

Browse files
committed
Merge pull request #14 from novoda/add_release_plugin
Add release plugin
2 parents 266c8a1 + b996412 commit 7a4da34

2 files changed

Lines changed: 36 additions & 91 deletions

File tree

README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,26 @@ This project uses [sqlite-jdbc](https://bitbucket.org/xerial/sqlite-jdbc) to cre
1212

1313
## Adding to your project
1414

15-
To integrate sqliteAnalyzer into your project, it is recommended for now that you depend directly on the sources. See the setup under the `buildSrc` sub-directory for an example.
15+
To integrate sqliteAnalyzer into your project, it is recommended for now that you depend directly on the sources. See the setup under the
16+
`buildSrc` sub-directory for an example.
1617

17-
After you've added the sources to `buildSrc`, you can start using this library, add these lines to the `build.gradle` of your project:
18+
If you prefer you can use it from jcenter directly, just add these lines to the build.gradle of your project:
1819

1920
```groovy
20-
apply plugin: 'sqlite-access'
21+
buildscript {
22+
repositories {
23+
jcenter()
24+
}
25+
dependencies {
26+
classpath 'com.novoda:sqlite-analyzer:0.0.1-beta'
27+
}
28+
}
29+
```
30+
31+
After you've added the sources to `buildSrc` or added the buildscript dependency, you can start using this library, add these lines to the `build.gradle` of your project:
32+
33+
```groovy
34+
apply plugin: 'sqlite-analyzer'
2135
2236
sqliteAccess {
2337
migrationsDir 'src/main/assets/migrations'

analyzer/build.gradle

Lines changed: 19 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1-
repositories {
2-
mavenCentral()
3-
maven {
4-
url "https://oss.sonatype.org/content/repositories/snapshots"
1+
buildscript {
2+
repositories {
3+
jcenter()
4+
}
5+
dependencies {
6+
classpath 'com.novoda:bintray-release:0.2.4'
57
}
68
}
79

810
apply plugin: 'java'
911
apply plugin: 'groovy'
10-
apply plugin: 'maven'
11-
apply plugin: 'signing'
12+
apply plugin: 'bintray-release'
13+
14+
repositories {
15+
mavenCentral()
16+
}
1217

1318
dependencies {
1419
compile 'org.xerial:sqlite-jdbc:3.8.7'
@@ -20,92 +25,18 @@ dependencies {
2025
}
2126

2227
group = 'com.novoda'
23-
version = "0.0.1-SNAPSHOT"
28+
version = "0.0.1-beta"
2429

2530
ext {
2631
sourceCompatibility = 1.6
2732
targetCompatibility = 1.6
2833
}
2934

30-
task javadocJar(type: Jar, dependsOn: javadoc) {
31-
classifier = 'javadoc'
32-
from groovydoc
33-
}
34-
35-
task sourcesJar(type: Jar) {
36-
from sourceSets.main.allSource
37-
classifier = 'sources'
38-
}
39-
40-
artifacts {
41-
archives jar
42-
archives javadocJar
43-
archives sourcesJar
44-
}
45-
46-
if (project.hasProperty("signing.keyId")) {
47-
signing {
48-
sign configurations.archives
49-
}
50-
}
51-
52-
uploadArchives {
53-
repositories {
54-
mavenDeployer {
55-
56-
// don't sign snapshots for now
57-
if (!version.endsWith('SNAPSHOT')) {
58-
beforeDeployment { deployment -> signing.signPom(deployment) }
59-
}
60-
61-
if (project.hasProperty('nexusUsername')) {
62-
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots") {
63-
authentication(userName: nexusUsername, password: nexusPassword)
64-
}
65-
66-
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") {
67-
authentication(userName: nexusUsername, password: nexusPassword)
68-
}
69-
}
70-
uniqueVersion = false
71-
72-
pom.artifactId = 'sqlite-analyzer'
73-
pom.project {
74-
75-
parent {
76-
groupId 'org.sonatype.oss'
77-
artifactId 'oss-parent'
78-
version '7'
79-
}
80-
81-
name 'sqliteAnalyzer Gradle Plugin'
82-
packaging 'jar'
83-
description 'Code generation for sqlite database access.'
84-
url 'https://github.com/novoda/sqliteAnalyzer'
85-
86-
scm {
87-
url 'https://github.com/novoda/sqliteAnalyzer'
88-
connection 'scm:https://novoda@github.com/novoda/sqliteAnalyzer.git'
89-
developerConnection 'scm:git@github.com:novoda/sqliteAnalyzer.git'
90-
}
91-
92-
licenses {
93-
license {
94-
name 'The Apache Software License, Version 2.0'
95-
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
96-
distribution 'repo'
97-
}
98-
}
99-
100-
developers {
101-
developer {
102-
id 'devisnik'
103-
name 'Volker Leck'
104-
}
105-
}
106-
}
107-
}
108-
}
35+
publish {
36+
userOrg = 'novoda'
37+
groupId = 'com.novoda'
38+
artifactId = 'sqlite-analyzer'
39+
version = project.version
40+
description = 'Code generation for Java/Android database access.'
41+
website = 'https://github.com/novoda/sqlite-analyzer'
10942
}
110-
111-

0 commit comments

Comments
 (0)