Updated Gradle infos & Readme

This commit is contained in:
Speiger 2021-06-22 14:19:09 +02:00
parent c50e022ec2
commit 9aedebd317
2 changed files with 55 additions and 1 deletions

View File

@ -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.
# 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

View File

@ -5,7 +5,8 @@ repositories {
}
archivesBaseName = 'Simple Code Generator'
version = '1.0.1'
version = '1.0.2'
apply plugin: 'maven'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
@ -21,4 +22,35 @@ task srcJar(type: Jar) {
artifacts {
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'
}
}
}
}
}
}