Merge pull request #10144 from SimoneCusimano/BAEL-4183-dependency-management-in-gradle
[BAEL-4183] Dependency Management in Gradle
This commit is contained in:
commit
51886013ac
|
@ -0,0 +1,32 @@
|
||||||
|
plugins {
|
||||||
|
id 'java'
|
||||||
|
id 'org.springframework.boot' version '2.3.4.RELEASE'
|
||||||
|
}
|
||||||
|
|
||||||
|
group = 'com.gradle'
|
||||||
|
version = '1.0.0'
|
||||||
|
sourceCompatibility = '14'
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation 'org.springframework.boot:spring-boot-starter:2.3.4.RELEASE'
|
||||||
|
|
||||||
|
testImplementation 'org.springframework.boot:spring-boot-starter-test:2.3.4.RELEASE'
|
||||||
|
|
||||||
|
compileOnly 'org.projectlombok:lombok:1.18.14'
|
||||||
|
|
||||||
|
testCompileOnly 'org.projectlombok:lombok:1.18.14'
|
||||||
|
|
||||||
|
runtimeOnly files('libs/sampleOne.jar', 'libs/sampleTwo.jar')
|
||||||
|
|
||||||
|
runtimeOnly fileTree('libs') { include '*.jar' }
|
||||||
|
|
||||||
|
// implementation gradleApi()
|
||||||
|
}
|
||||||
|
|
||||||
|
test {
|
||||||
|
useJUnitPlatform()
|
||||||
|
}
|
|
@ -0,0 +1,5 @@
|
||||||
|
distributionBase=GRADLE_USER_HOME
|
||||||
|
distributionPath=wrapper/dists
|
||||||
|
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6.1-bin.zip
|
||||||
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
zipStorePath=wrapper/dists
|
|
@ -0,0 +1 @@
|
||||||
|
rootProject.name = 'dependencymanagement'
|
|
@ -0,0 +1,13 @@
|
||||||
|
package com.gradle.dependencymanagement;
|
||||||
|
|
||||||
|
import org.springframework.boot.SpringApplication;
|
||||||
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
|
||||||
|
@SpringBootApplication
|
||||||
|
public class DependencyManagementApplication {
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
SpringApplication.run(DependencyManagementApplication.class, args);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
package com.gradle.dependencymanagement;
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
import org.springframework.boot.test.context.SpringBootTest;
|
||||||
|
|
||||||
|
@SpringBootTest
|
||||||
|
class DependencyManagementApplicationTests {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void contextLoads() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue