Let's see if the build works.
This commit is contained in:
parent
1462d78bc1
commit
40b31374ba
@ -31,7 +31,7 @@ steps:
|
||||
- name: build
|
||||
image: gradle:jdk8
|
||||
commands:
|
||||
- ./gradlew assemble
|
||||
- ./gradlew build
|
||||
- name: scpFiles
|
||||
image: appleboy/drone-scp
|
||||
settings:
|
||||
@ -54,10 +54,10 @@ steps:
|
||||
- sudo service cv-api stop
|
||||
- cd /home/ubuntu/cv-api
|
||||
- sudo chown ubuntu:ubuntu ./*
|
||||
- sudo mv -f ./cvApi-1.0-SNAPSHOT.jar /usr/local/bin/ #todo change file to variable
|
||||
- sudo mv -f ./cvApi-1.0-SNAPSHOT-all.jar /usr/local/bin/ #todo change file to variable
|
||||
- cd /usr/local/bin/
|
||||
- sudo mv cv-api.jar cv-api.jar.back
|
||||
- sudo ln -s cvApi-1.0-SNAPSHOT.jar cv-api.jar #todo change file to variable
|
||||
- sudo mv -f cv-api.jar cv-api.jar.back
|
||||
- sudo ln -s cvApi-1.0-SNAPSHOT-all.jar cv-api.jar #todo change file to variable
|
||||
- sudo service cv-api start
|
||||
|
||||
trigger:
|
||||
|
12
.idea/dataSources.xml
Normal file
12
.idea/dataSources.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
|
||||
<data-source source="LOCAL" name="cvapi.db" uuid="9b231c56-b79a-4ff9-9248-366859e7d88d">
|
||||
<driver-ref>sqlite.xerial</driver-ref>
|
||||
<synchronize>true</synchronize>
|
||||
<jdbc-driver>org.sqlite.JDBC</jdbc-driver>
|
||||
<jdbc-url>jdbc:sqlite:$PROJECT_DIR$/cvapi.db</jdbc-url>
|
||||
<working-dir>$ProjectFileDir$</working-dir>
|
||||
</data-source>
|
||||
</component>
|
||||
</project>
|
@ -1,9 +1,10 @@
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||
|
||||
plugins {
|
||||
id("com.squareup.sqldelight")
|
||||
id("org.sonarqube")
|
||||
id("com.github.johnrengelman.shadow")
|
||||
kotlin("jvm") version "1.7.10"
|
||||
}
|
||||
|
||||
@ -31,9 +32,28 @@ tasks.withType<KotlinCompile> {
|
||||
kotlinOptions.jvmTarget = "1.8"
|
||||
}
|
||||
|
||||
tasks.withType<Jar> {
|
||||
manifest {
|
||||
attributes["Main-Class"] = "ServerKt"
|
||||
}
|
||||
}
|
||||
|
||||
sqldelight {
|
||||
database("CVApiDB") {
|
||||
packageName = "fr.louveauAmine.cvApi.dao"
|
||||
sourceFolders = listOf("sqldelight")
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType<ShadowJar> {
|
||||
mergeServiceFiles()
|
||||
manifest {
|
||||
attributes(mapOf("Main-Class" to "ServerKt"))
|
||||
}
|
||||
}
|
||||
|
||||
tasks {
|
||||
build {
|
||||
dependsOn(shadowJar)
|
||||
}
|
||||
}
|
@ -15,6 +15,9 @@ pluginManagement {
|
||||
if (requested.id.id == "org.sonarqube") {
|
||||
useModule("org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.4.0.2513")
|
||||
}
|
||||
if (requested.id.id == "com.github.johnrengelman.shadow") {
|
||||
useModule("gradle.plugin.com.github.johnrengelman:shadow:7.1.2")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user