Initialize sub-projects

This commit is contained in:
woo-jin-shin 2021-08-20 18:04:06 +09:00
parent 580f2a4c7e
commit 019b1f2211
13 changed files with 113 additions and 45 deletions

View File

@ -1,7 +1,8 @@
plugins { plugins {
id 'org.springframework.boot' version '2.5.4' id 'org.springframework.boot' version '2.5.4'
id 'io.spring.dependency-management' version '1.0.11.RELEASE' id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java' id 'java'
id 'idea'
} }
group = 'com.myoa.engineering.music' group = 'com.myoa.engineering.music'
@ -9,26 +10,47 @@ version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11' sourceCompatibility = '11'
configurations { configurations {
compileOnly { compileOnly {
extendsFrom annotationProcessor extendsFrom annotationProcessor
} }
} }
repositories { repositories {
mavenCentral() mavenCentral()
} }
dependencies { allprojects {
implementation 'org.springframework.boot:spring-boot-starter-web' apply plugin: 'java'
compileOnly 'org.projectlombok:lombok' apply plugin: 'idea'
developmentOnly 'org.springframework.boot:spring-boot-devtools' apply plugin: 'org.springframework.boot'
runtimeOnly 'com.h2database:h2' apply plugin: 'io.spring.dependency-management'
runtimeOnly 'mysql:mysql-connector-java'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor' repositories {
annotationProcessor 'org.projectlombok:lombok' mavenCentral()
testImplementation 'org.springframework.boot:spring-boot-starter-test' maven {
url "https://plugins.gradle.org/m2/"
}
}
/* task initSourceFolders {
sourceSets*.java.srcDirs*.each {
if( !it.exists() ) {
it.mkdirs()
}
}
sourceSets*.resources.srcDirs*.each {
if( !it.exists() ) {
it.mkdirs()
}
}
}*/
} }
test { jar {
useJUnitPlatform() enabled = false
} }
bootJar {
enabled = false
}

View File

@ -0,0 +1,10 @@
package com.myoa.engineering.music.soundhoundfound.processor;
/**
* ProcessorApplication
* @author Shin Woo-jin (woo-jin.shin@linecorp.com)
* @since 2021-08-20
*
*/
public class ProcessorApplication {
}

22
receiver/build.gradle Normal file
View File

@ -0,0 +1,22 @@
dependencies {
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'com.h2database:h2'
runtimeOnly 'mysql:mysql-connector-java'
compileOnly 'org.projectlombok:lombok'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.telegram:telegrambots:5.3.0'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}

View File

@ -0,0 +1,18 @@
package com.myoa.engineering.music.soundhoundfound.receiver;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* ReceiverApplication
* @author Shin Woo-jin (woo-jin.shin@linecorp.com)
* @since 2021-08-20
*
*/
@SpringBootApplication
public class ReceiverApplication {
public static void main(String[] args) {
SpringApplication.run(ReceiverApplication.class, args);
}
}

View File

@ -0,0 +1,10 @@
package com.myoa.engineering.music.soundhoundfound.sender;
/**
* SenderApplication
* @author Shin Woo-jin (woo-jin.shin@linecorp.com)
* @since 2021-08-20
*
*/
public class SenderApplication {
}

View File

@ -1 +1,14 @@
rootProject.name = 'SoundHoundFound' rootProject.name = 'SoundHoundFound'
include 'receiver'
project(':receiver').projectDir = "$rootDir/receiver" as File
include 'processor'
project(':processor').projectDir = "$rootDir/processor" as File
include 'sender'
project(':sender').projectDir = "$rootDir/sender" as File
include 'support'
project(':support').projectDir = "$rootDir/support" as File

View File

@ -1,13 +0,0 @@
package com.myoa.engineering.music.soundhoundfound;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class SoundHoundFoundApplication {
public static void main(String[] args) {
SpringApplication.run(SoundHoundFoundApplication.class, args);
}
}

View File

@ -1 +0,0 @@

View File

@ -1,13 +0,0 @@
package com.myoa.engineering.music.soundhoundfound;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class SoundHoundFoundApplicationTests {
@Test
void contextLoads() {
}
}