Updated Gradle infos & Readme
This commit is contained in:
parent
c50e022ec2
commit
9aedebd317
22
README.md
22
README.md
|
@ -6,6 +6,28 @@ It has a cache that keeps track of the input (if it was changed), and only cares
|
||||||
|
|
||||||
It is as bare bones as it can get but that also makes it flexible.
|
It is as bare bones as it can get but that also makes it flexible.
|
||||||
|
|
||||||
|
# How to install
|
||||||
|
|
||||||
|
Using Maven:
|
||||||
|
```xml
|
||||||
|
<dependency>
|
||||||
|
<groupId>de.speiger</groupId>
|
||||||
|
<artifactId>Simple-Code-Generator</artifactId>
|
||||||
|
<version>1.0.2</version>
|
||||||
|
</dependency>
|
||||||
|
```
|
||||||
|
|
||||||
|
Using Gradle:
|
||||||
|
```gradle
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
url = "https://maven.speiger.com/repository/main"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
dependencies {
|
||||||
|
compile 'de.speiger:Simple-Code-Generator:1.0.2'
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
# How to create a Template Processor
|
# How to create a Template Processor
|
||||||
|
|
||||||
|
|
34
build.gradle
34
build.gradle
|
@ -5,7 +5,8 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
archivesBaseName = 'Simple Code Generator'
|
archivesBaseName = 'Simple Code Generator'
|
||||||
version = '1.0.1'
|
version = '1.0.2'
|
||||||
|
apply plugin: 'maven'
|
||||||
|
|
||||||
tasks.withType(JavaCompile) {
|
tasks.withType(JavaCompile) {
|
||||||
options.encoding = 'UTF-8'
|
options.encoding = 'UTF-8'
|
||||||
|
@ -21,4 +22,35 @@ task srcJar(type: Jar) {
|
||||||
|
|
||||||
artifacts {
|
artifacts {
|
||||||
archives srcJar
|
archives srcJar
|
||||||
|
}
|
||||||
|
|
||||||
|
uploadArchives {
|
||||||
|
repositories.mavenDeployer {
|
||||||
|
repository(url: 'https://maven.speiger.com/repository/main') {
|
||||||
|
authentication(userName: project.properties.mavenUser, password: project.properties.mavenPassword)
|
||||||
|
}
|
||||||
|
snapshotRepository(url: 'https://maven.speiger.com/repository/main') {
|
||||||
|
authentication(userName: project.properties.mavenUser, password: project.properties.mavenPassword)
|
||||||
|
}
|
||||||
|
pom {
|
||||||
|
version = project.version
|
||||||
|
artifactId = project.archivesBaseName.replace(" ", "-")
|
||||||
|
groupId = 'de.speiger'
|
||||||
|
project {
|
||||||
|
licenses {
|
||||||
|
license {
|
||||||
|
name = 'The Apache License, Version 2.0'
|
||||||
|
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
developers {
|
||||||
|
developer {
|
||||||
|
id = 'speiger'
|
||||||
|
name = 'Speiger'
|
||||||
|
email = 'speiger@gmx.net'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue