Move source into api module

This commit is contained in:
William Brawner 2020-05-13 19:24:51 -07:00
parent 661ea1764c
commit 5889d0b59b
27 changed files with 77 additions and 45 deletions

58
api/build.gradle.kts Normal file
View file

@ -0,0 +1,58 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import java.net.URI
buildscript {
repositories {
mavenLocal()
mavenCentral()
// maven {
// url = URI("https://repo.maven.apache.org/maven2")
// }
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.61")
}
}
plugins {
java
kotlin("jvm") version "1.3.61"
id("org.springframework.boot") version "2.2.4.RELEASE"
}
apply(plugin = "io.spring.dependency-management")
repositories {
mavenLocal()
mavenCentral()
maven {
url = URI("http://repo.maven.apache.org/maven2")
}
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.session:spring-session-jdbc")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.9.8")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.3.61")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.61")
implementation("io.springfox:springfox-swagger2:2.8.0")
implementation("io.springfox:springfox-swagger-ui:2.8.0")
runtimeOnly("mysql:mysql-connector-java:8.0.15")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.security:spring-security-test:5.1.5.RELEASE")
}
description = "twigs-server"
val mainClass = "com.wbrawner.budgetserver.BudgetServerApplication"
tasks.bootJar {
mainClassName = mainClass
}
tasks.bootRun {
main = mainClass
}

View file

@ -5,9 +5,6 @@ buildscript {
repositories { repositories {
mavenLocal() mavenLocal()
mavenCentral() mavenCentral()
// maven {
// url = URI("https://repo.maven.apache.org/maven2")
// }
} }
dependencies { dependencies {
@ -23,46 +20,22 @@ plugins {
apply(plugin = "io.spring.dependency-management") apply(plugin = "io.spring.dependency-management")
repositories { allprojects {
repositories {
mavenLocal() mavenLocal()
mavenCentral() mavenCentral()
maven { maven {
url = URI("http://repo.maven.apache.org/maven2") url = URI("http://repo.maven.apache.org/maven2")
} }
} }
group = "com.wbrawner"
version = "0.0.1-SNAPSHOT"
dependencies { sourceSets.getByName("main") {
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.session:spring-session-jdbc")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.9.8")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.3.61")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.61")
implementation("io.springfox:springfox-swagger2:2.8.0")
implementation("io.springfox:springfox-swagger-ui:2.8.0")
runtimeOnly("mysql:mysql-connector-java:8.0.15")
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.security:spring-security-test:5.1.5.RELEASE")
}
group = "com.wbrawner"
version = "0.0.1-SNAPSHOT"
description = "twigs-server"
sourceSets.getByName("main") {
java.srcDir("src/main/kotlin") java.srcDir("src/main/kotlin")
} }
tasks.withType<KotlinCompile> { tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "11" kotlinOptions.jvmTarget = "14"
} }
val mainClass = "com.wbrawner.budgetserver.BudgetServerApplication"
tasks.bootJar {
mainClassName = mainClass
}
tasks.bootRun {
main = mainClass
} }

View file

@ -2,4 +2,5 @@
* This file was generated by the Gradle 'init' task. * This file was generated by the Gradle 'init' task.
*/ */
rootProject.name = 'budget-server' rootProject.name = 'twigs'
include ':api'