Skip to content

Commit

Permalink
Travis CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Jens Brimfors committed May 14, 2019
1 parent 096e6e0 commit 1f15b65
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: java
jdk: oraclejdk8

jobs:
include:
- stage: Build and test
script: ./gradlew build
- stage: Publish to gradle portal
script: ./gradlew -PreleaseVersion=$TRAVIS_TAG :publishPlugins
if: tag IS present
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
Have your backend declare the data types (DTOs) for its API, and use em in the front end.
Great when working with Angular or other TypeScript frameworks.

[![Gradle Plugin Portal](https://img.shields.io/maven-metadata/v/https/plugins.gradle.org/m2/se/jensim/kt2ts/se.jensim.kt2ts.gradle.plugin/maven-metadata.xml.svg?colorB=007ec6&label=gradle-plugin)](https://plugins.gradle.org/plugin/se.jensim.kt2ts)

## Usage
build.kotlin.kts
```kotlin
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repositories {
}

group = "se.jensim.kt2ts"
version = "0.5.0-SNAPSHOT"
version = findProperty("releaseVersion") ?: "DEV"

dependencies {
implementation(kotlin("stdlib-jdk8"))
Expand Down
3 changes: 1 addition & 2 deletions example/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import se.jensim.gradle.plugin.kt2ts.kt2ts

plugins {
kotlin("jvm") version "1.3.31"
Expand Down Expand Up @@ -46,4 +45,4 @@ tasks.withType<KotlinCompile> {
}

group = "se.jensim.kt2ts-example"
version = "0.5.0-SNAPSHOT"
version = "DEV"
3 changes: 1 addition & 2 deletions example/dev.build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ import se.jensim.gradle.plugin.kt2ts.kt2ts
buildscript {
repositories {
repositories {
mavenCentral()
mavenLocal()
gradlePluginPortal()
}
}
dependencies {
classpath("se.jensim.kt2ts:se.jensim.kt2ts.gradle.plugin:0.5.0-SNAPSHOT")
classpath("se.jensim.kt2ts:se.jensim.kt2ts.gradle.plugin:DEV")
}
}
apply(plugin = "se.jensim.kt2ts")
Expand Down

0 comments on commit 1f15b65

Please sign in to comment.