/*
 * Copyright (c) 2019 Red Hat, Inc.
 * This program and the accompanying materials are made
 * available under the terms of the Eclipse Public License 2.0
 * which is available at:
 *
 *     https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *   Red Hat, Inc. - initial API and implementation
 */
plugins {
    id 'org.eclipse.jkube.kubernetes' version "${jKubeVersion}"
    id 'org.eclipse.jkube.openshift' version "${jKubeVersion}"
    id 'org.springframework.boot' version '2.7.14'
    id 'io.spring.dependency-management' version '1.0.15.RELEASE'
    id 'java'
}

group = 'org.eclipse.jkube.integration.tests.gradle'
version = '0.0.1-SNAPSHOT'

repositories {
    mavenCentral()
}

dependencies {
    implementation 'org.springframework.boot:spring-boot-starter-web'
    implementation 'org.springframework.boot:spring-boot-starter-actuator'
}

kubernetes {
    offline = true
    resources {
        configMap {
            name = 'jkube-gradle-sample-config-map'
            entries = [{
                name = 'A'
                value = 'B'
            },{
                file = file("${project.rootDir}/src/test/resources/test-configmap.properties")
            }]
        }
    }
}

openshift {
    offline = true
    resources {
        configMap {
            name = 'jkube-gradle-sample-config-map'
            entries = [{
                name = 'A'
                value = 'B'
            },{
                file = file("${project.rootDir}/src/test/resources/test-configmap.properties")
            }]
        }
    }
}
