/*
 * This file was generated by the Gradle 'init' task.
 *
 * NOTE: any changes in this file also need to be replicated in the `pom.xml`
 * file in the same directory!  The CI/CD process uses maven, so changes to
 * dependencies made in this file will work locally but not propagate to the
 * distributed library otherwise.
 *
 * This project uses @Incubating APIs which are subject to change.
 */

plugins {
    // Apply the java-library plugin for API and implementation separation.
    id 'java-library'
    // Use this to check for newer versions of dependency libraries via
    // ./gradlew dependencyUpdates
    id "com.github.ben-manes.versions" version "0.51.0"
    // https://docs.freefair.io/gradle-plugins/8.4/reference/#_lombok
    id "io.freefair.lombok" version "8.6"
}

repositories {
    // Use Maven Central for resolving dependencies.
    mavenCentral()

    // 7bulls, activeeon maven repositories for SAL
    maven {
        url 'http://repository.activeeon.com/content/groups/proactive/'
        allowInsecureProtocol = true
    }
}

dependencies {
    // NOTE: replicate any changes in this section in the `pom.xml` file as well

    // JSON parsing; exported to consumers
    // https://github.com/FasterXML/jackson
    api 'com.fasterxml.jackson.core:jackson-databind:2.17.1'

    // SAL client library; exported to consumers
    api 'org.ow2.proactive:sal-common:13.1.0-SNAPSHOT'

    // YAML parsing: https://github.com/FasterXML/jackson-dataformats-text
    implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.17.1'
    // Logging (only the API; backends will be set up by the application)
    implementation 'org.slf4j:slf4j-api:2.0.13'

}

testing {
    suites {
        // Configure the built-in test suite
        test {
            // Use JUnit Jupiter test framework
            useJUnitJupiter('5.10.0')
        }
    }
}

// Apply a specific Java toolchain to ease working on different environments.
java {
    toolchain {
        languageVersion = JavaLanguageVersion.of(17)
    }
}

group = 'eu.nebulouscloud'
version = '1.0'