Let's see if the build works.
This commit is contained in:
parent
1462d78bc1
commit
40b31374ba
@ -31,7 +31,7 @@ steps:
|
|||||||
- name: build
|
- name: build
|
||||||
image: gradle:jdk8
|
image: gradle:jdk8
|
||||||
commands:
|
commands:
|
||||||
- ./gradlew assemble
|
- ./gradlew build
|
||||||
- name: scpFiles
|
- name: scpFiles
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
settings:
|
settings:
|
||||||
@ -54,10 +54,10 @@ steps:
|
|||||||
- sudo service cv-api stop
|
- sudo service cv-api stop
|
||||||
- cd /home/ubuntu/cv-api
|
- cd /home/ubuntu/cv-api
|
||||||
- sudo chown ubuntu:ubuntu ./*
|
- 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/
|
- cd /usr/local/bin/
|
||||||
- sudo mv cv-api.jar cv-api.jar.back
|
- sudo mv -f cv-api.jar cv-api.jar.back
|
||||||
- sudo ln -s cvApi-1.0-SNAPSHOT.jar cv-api.jar #todo change file to variable
|
- sudo ln -s cvApi-1.0-SNAPSHOT-all.jar cv-api.jar #todo change file to variable
|
||||||
- sudo service cv-api start
|
- sudo service cv-api start
|
||||||
|
|
||||||
trigger:
|
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 org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("com.squareup.sqldelight")
|
id("com.squareup.sqldelight")
|
||||||
id("org.sonarqube")
|
id("org.sonarqube")
|
||||||
|
id("com.github.johnrengelman.shadow")
|
||||||
kotlin("jvm") version "1.7.10"
|
kotlin("jvm") version "1.7.10"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -31,9 +32,28 @@ tasks.withType<KotlinCompile> {
|
|||||||
kotlinOptions.jvmTarget = "1.8"
|
kotlinOptions.jvmTarget = "1.8"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.withType<Jar> {
|
||||||
|
manifest {
|
||||||
|
attributes["Main-Class"] = "ServerKt"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sqldelight {
|
sqldelight {
|
||||||
database("CVApiDB") {
|
database("CVApiDB") {
|
||||||
packageName = "fr.louveauAmine.cvApi.dao"
|
packageName = "fr.louveauAmine.cvApi.dao"
|
||||||
sourceFolders = listOf("sqldelight")
|
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") {
|
if (requested.id.id == "org.sonarqube") {
|
||||||
useModule("org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.4.0.2513")
|
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