/*
 * 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 '1.18.1'
    id 'org.eclipse.jkube.openshift' version '1.18.1'
    id 'org.springframework.boot' version '2.7.11'
    id 'io.spring.dependency-management' version '1.0.11.RELEASE'
    id 'java'
}

group = 'org.eclipse.jkube.quickstarts.gradle'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'

repositories {
    mavenCentral()
}

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

kubernetes {
    offline = false
    access {
        namespace = 'default'
    }
    enricher {
        excludes = ['jkube-expose']
    }
    generator {
        includes = ['spring-boot']
        config {
            'spring-boot' {
                color = 'always'
            }
        }
    }
    resources {
        controllerName = 'test'
        configMap {
            name = 'config-map-name'
            entries = [
                    [name: 'test', value: 'value']
            ]
        }
    }
}
