Skip to content

Commit

Permalink
Improved deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
milux committed Oct 31, 2018
1 parent 48737d3 commit 583c729
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/.idea
/build
/out
/builds/*SNAPSHOT.jar
/releases
24 changes: 16 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
buildscript {
ext.kotlin_version = '1.3.0'

repositories {
mavenCentral()
flatDir dirs: "C:\\proguard\\lib"
}
dependencies {
classpath ":proguard:"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

group 'ppcolor'
version '1.0.1'
plugins {
id "org.jetbrains.kotlin.jvm" version "1.3.0"
id "com.github.breadmoirai.github-release" version "2.2.0"
}

apply plugin: 'kotlin'
apply plugin: 'application'
group 'de.milux.ppcolor'
version '1.0.2'

repositories {
mavenCentral()
}

dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
}

compileKotlin {
Expand All @@ -43,4 +42,13 @@ task proguard(type: proguard.gradle.ProGuardTask) {
configuration file('proguard.txt')
injars "build/libs/de.milux.ppcolor-${version}.jar"
outjars "releases/ppcolor-${version}.jar"
}
proguard.dependsOn jar

githubRelease {
token getProperty('github.token')
owner "milux"
repo "ppcolor"
tagName "${version}"
releaseAssets "releases/ppcolor-${version}.jar"
}
Binary file removed releases/ppcolor-1.0.1.jar
Binary file not shown.

0 comments on commit 583c729

Please sign in to comment.