Merge pull request #10144 from SimoneCusimano/BAEL-4183-dependency-management-in-gradle

[BAEL-4183] Dependency Management in Gradle
This commit is contained in:
Greg 2020-10-31 12:35:33 -04:00 committed by GitHub
commit 51886013ac
6 changed files with 65 additions and 0 deletions

View File

@ -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()
}

View File

@ -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

View File

@ -0,0 +1 @@
rootProject.name = 'dependencymanagement'

View File

@ -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);
}
}

View File

@ -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() {
}
}