Skip to content
This repository was archived by the owner on Jul 4, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,18 +1,36 @@
buildscript {
repositories {
jcenter()
// TODO: remove when 2.0.0 is released
maven { url 'https://repo.spring.io/libs-milestone' }
}
dependencies {
classpath 'org.springframework.boot:spring-boot-gradle-plugin:2.0.0.M6'
}
}

plugins {
id 'org.jetbrains.kotlin.jvm' version '1.1.51'
id 'org.springframework.boot' version '1.5.8.RELEASE'
//id 'org.springframework.boot' version '2.0.0.RELEASE'
id 'org.hidetake.appengine.spring.boot' version '1.1'
}

// TODO: remove when 2.0.0 is released
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'

sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

repositories {
jcenter()
// TODO: remove when 2.0.0 is released
maven { url 'https://repo.spring.io/libs-milestone' }
}

dependencies {
compile 'org.jetbrains.kotlin:kotlin-stdlib'
compile 'org.jetbrains.kotlin:kotlin-reflect'

compile 'org.springframework.boot:spring-boot-starter-web'
compile 'org.springframework.boot:spring-boot-starter-thymeleaf'
Expand Down
10 changes: 4 additions & 6 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ jobs:
- deploy:
name: Deploy
command: |
if [ "$CIRCLE_BRANCH" = "master" ]; then
echo "$GCP_SERVICE_ACCOUNT_KEY" | base64 -d > "$HOME/gcp-service-account-key.json"
gcloud auth activate-service-account --key-file "$HOME/gcp-service-account-key.json"
gcloud config set project "$GCP_PROJECT_ID"
./gradlew appengineDeploy
fi
echo "$GCP_SERVICE_ACCOUNT_KEY" | base64 -d > "$HOME/gcp-service-account-key.json"
gcloud auth activate-service-account --key-file "$HOME/gcp-service-account-key.json"
gcloud config set project "$GCP_PROJECT_ID"
./gradlew appengineDeploy
7 changes: 6 additions & 1 deletion src/main/kotlin/example/App.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
package example

import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.web.support.SpringBootServletInitializer
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer

@SpringBootApplication
open class App : SpringBootServletInitializer()

fun main(args: Array<String>) {
SpringApplication.run(App::class.java, *args)
}