Skip to content

Commit

Permalink
#21: Add kotlin and gradle support for whole project with travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
MovingToWeb committed Aug 29, 2019
1 parent 5158b68 commit 6bf0777
Show file tree
Hide file tree
Showing 16 changed files with 64 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
build
.idea/
.gradle/
dist
target

13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: java
jdk:
- openjdk8

script: ./gradlew clean build --info

jobs:
include:
- stage: Test
script: ./gradle clean test

notifications:
email: [email protected]
13 changes: 13 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
allprojects {
repositories {
mavenLocal()
mavenCentral()
maven { url "https://jcenter.bintray.com" }
}
}

subprojects {
version = '0.1'
}

group 'com.techprimers.spent'
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
kotlin.code.style=official
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#Thu Aug 29 08:04:30 IST 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10-all.zip
File renamed without changes.
File renamed without changes.
Binary file added images/logo-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/logo-3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/logo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
rootProject.name = 'spent'

include 'spent-kotlin-server'
include 'spent-server'
21 changes: 21 additions & 0 deletions spent-kotlin-server/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.3.21'
}

sourceCompatibility = 1.8

version "0.1"
group "com.techprimers.spent"

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testCompile group: 'junit', name: 'junit', version: '4.12'
}

compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.techprimers.spent;

public class HelloJava {
}
Empty file.
6 changes: 0 additions & 6 deletions spent-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ apply plugin:"java"
version "0.1"
group "spent.server"

repositories {
mavenLocal()
mavenCentral()
maven { url "https://jcenter.bintray.com" }
}

dependencyManagement {
imports {
mavenBom 'io.micronaut:micronaut-bom:1.0.1'
Expand Down

0 comments on commit 6bf0777

Please sign in to comment.