/*
 * Copyright 2021 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

plugins {
    id 'application'
    id 'java'
    id 'org.springframework.boot' version '2.7.18'
}

repositories {
    mavenCentral()
}

bootRun {
    mainClassName = 'demo.PubSubApplication'
}

group = 'demo'
version = '1.0.0-SNAPSHOT'
description = 'Spring Cloud GCP Pub/Sub Code Sample'
java.sourceCompatibility = JavaVersion.VERSION_1_8

dependencies {
    implementation platform('com.google.cloud:spring-cloud-gcp-dependencies:3.7.7')
    implementation platform('org.springframework.boot:spring-boot-dependencies:2.7.18')
    implementation 'com.github.spotbugs:spotbugs-annotations:4.8.3'
    implementation 'com.google.cloud:spring-cloud-gcp-pubsub-stream-binder'
    implementation 'com.google.cloud:spring-cloud-gcp-starter-pubsub'
    implementation 'org.springframework.boot:spring-boot-starter-web:'
    implementation 'org.springframework.integration:spring-integration-core'
    testImplementation 'com.google.truth:truth:1.4.0'
    testImplementation 'junit:junit:4.13.2'
    testImplementation 'org.springframework.boot:spring-boot-test'
}
