plugins {
    id 'java'
    id 'org.springframework.boot' version '2.7.14'
    id 'io.spring.dependency-management' version '1.1.3'
}

group = 'com.example'
version = '1.0.0'
sourceCompatibility = '17'

repositories {
    mavenCentral()
}

dependencies {
    implementation 'org.springframework.boot:spring-boot-starter-web:2.7.14'
    implementation 'com.google.code.gson:gson:2.10.1'
    api 'org.apache.commons:commons-lang3:3.13.0'
    compileOnly 'org.projectlombok:lombok:1.18.30'
    annotationProcessor 'org.projectlombok:lombok:1.18.30'
    testImplementation 'junit:junit:4.13.2'
    testRuntimeOnly 'org.junit.vintage:junit-vintage-engine:5.10.0'
}

task buildDocs(type: Copy) {
    from 'src/main/docs'
    into 'build/docs'
}

task deployToServer {
    dependsOn 'build'
    doLast {
        println 'Deploying...'
    }
}

tasks.register('generateSources') {
    doLast {
        println 'Generating sources...'
    }
}
