gradle setting 변경

gradle setting 변경
This commit is contained in:
deogicorgi
2022-04-10 17:44:10 +09:00
parent b09375afba
commit b1487862d8
5 changed files with 45 additions and 78 deletions

View File

@@ -1,33 +1,53 @@
plugins { buildscript {
// id 'org.springframework.boot' version '2.6.6' ext {
// id 'io.spring.dependency-management' version '1.0.11.RELEASE' springBootVersion = '2.6.6'
id 'java' kafkaCommonVersion ='1.0.0'
}
repositories {
google()
mavenCentral()
maven { url 'https://repo.spring.io/plugins-snapshot' }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion")
}
} }
group = 'com.github.deogicorgi' group = 'com.github.deogicorgi.reactor'
version = '0.0.1-SNAPSHOT' version = '1.0.0'
sourceCompatibility = '11'
//configurations {
// compileOnly {
// extendsFrom annotationProcessor
// }
//}
repositories { allprojects {
mavenCentral() apply plugin: 'idea'
apply plugin: 'java'
sourceCompatibility = '11'
targetCompatibility = '11'
repositories {
mavenCentral()
}
} }
subprojects { subprojects {
apply plugin: 'java' apply plugin: 'org.springframework.boot'
apply plugin: 'idea' apply plugin: 'io.spring.dependency-management'
dependencyManagement {
dependencies {
dependencySet(group : 'org.springframework.boot', version : springBootVersion) {
entry 'spring-boot'
entry 'spring-boot-test'
entry 'spring-boot-starter'
entry 'spring-boot-starter-test'
entry 'spring-boot-test-autoconfigure'
}
}
}
dependencies { dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
implementation 'org.slf4j:jcl-over-slf4j'
implementation 'ch.qos.logback:logback-classic'
// lombok // lombok
compileOnly 'org.projectlombok:lombok' compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok' annotationProcessor 'org.projectlombok:lombok'

View File

@@ -1,12 +1,10 @@
plugins { plugins {
id 'java' id 'java'
id 'java-library' id 'java-library'
id 'org.springframework.boot' version '2.6.4'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
} }
group 'com.github.deogicorgi.reactive' group 'com.github.deogicorgi.reactive.common'
version '0.0.1-SNAPSHOT' version '1.0.0'
bootJar { bootJar {
enabled = false enabled = false
@@ -16,10 +14,6 @@ jar {
enabled = true enabled = true
} }
repositories {
mavenCentral()
}
dependencies { dependencies {
implementation 'com.fasterxml.jackson.core:jackson-annotations' implementation 'com.fasterxml.jackson.core:jackson-annotations'
} }

View File

@@ -1,22 +1,5 @@
plugins {
id 'org.springframework.boot' version '2.6.6'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
group = 'com.github.deogicorgi.reactive.consumer' group = 'com.github.deogicorgi.reactive.consumer'
version = '0.0.1-SNAPSHOT' version = '1.0.0'
sourceCompatibility = '11'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies { dependencies {
implementation 'org.springframework.boot:spring-boot-starter' implementation 'org.springframework.boot:spring-boot-starter'

View File

@@ -1,13 +0,0 @@
package com.github.deogicorgi.reactive.consumer;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class ConsumerApplicationTests {
@Test
void contextLoads() {
}
}

View File

@@ -1,22 +1,5 @@
plugins {
id 'org.springframework.boot' version '2.6.6'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
group = 'com.github.deogicorgi.reactive.producer' group = 'com.github.deogicorgi.reactive.producer'
version = '0.0.1-SNAPSHOT' version = '1.0.0'
sourceCompatibility = '11'
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies { dependencies {
// Spring boot // Spring boot