diff --git a/README.md b/README.md index a12239b..d4e3fe2 100644 --- a/README.md +++ b/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. +# How to install + +Using Maven: +```xml + + de.speiger + Simple-Code-Generator + 1.0.2 + +``` + +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 diff --git a/build.gradle b/build.gradle index e8be383..f8d0acb 100644 --- a/build.gradle +++ b/build.gradle @@ -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' + } + } + } + } + } } \ No newline at end of file