Skip to content

Commit

Permalink
Define dependency versions per app
Browse files Browse the repository at this point in the history
  • Loading branch information
gcatanese committed Sep 12, 2024
1 parent 9f4605f commit 1a786ed
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 32 deletions.
21 changes: 13 additions & 8 deletions authorisation-adjustment-example/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
alias(libs.plugins.spring.framework)
alias(libs.plugins.spring.dependency)
id 'org.springframework.boot' version '3.1.4'
id 'io.spring.dependency-management' version '1.1.3'

id 'java'
}
Expand All @@ -12,18 +12,23 @@ sourceCompatibility = 17
targetCompatibility = 17

repositories {
mavenCentral()
mavenCentral()
}

dependencies {
implementation libs.adyen.java
implementation libs.bundles.spring
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect'
implementation 'com.adyen:adyen-java-api-library:23.0.1'

testImplementation(libs.bundles.spring.test){
exclude (group: 'org.junit.vintage', module: 'junit-vintage-engine')
developmentOnly 'org.springframework.boot:spring-boot-devtools'

testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}

}

test {
useJUnitPlatform()
useJUnitPlatform()
}
8 changes: 0 additions & 8 deletions authorisation-adjustment-example/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
rootProject.name = 'adyen-java-spring-online-payments-authorisation-adjustment'

dependencyResolutionManagement {
versionCatalogs {
libs {
from(files("../gradle/libs.versions.toml"))
}
}
}
21 changes: 13 additions & 8 deletions subscription-example/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
alias(libs.plugins.spring.framework)
alias(libs.plugins.spring.dependency)
id 'org.springframework.boot' version '3.1.4'
id 'io.spring.dependency-management' version '1.1.3'

id 'java'
}
Expand All @@ -12,18 +12,23 @@ sourceCompatibility = 17
targetCompatibility = 17

repositories {
mavenCentral()
mavenCentral()
}

dependencies {
implementation libs.adyen.java
implementation libs.bundles.spring
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect'
implementation 'com.adyen:adyen-java-api-library:23.0.1'

testImplementation(libs.bundles.spring.test){
exclude (group: 'org.junit.vintage', module: 'junit-vintage-engine')
developmentOnly 'org.springframework.boot:spring-boot-devtools'

testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}

}

test {
useJUnitPlatform()
useJUnitPlatform()
}
8 changes: 0 additions & 8 deletions subscription-example/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
rootProject.name = 'adyen-java-spring-online-payments-subscription'

dependencyResolutionManagement {
versionCatalogs {
libs {
from(files("../gradle/libs.versions.toml"))
}
}
}

0 comments on commit 1a786ed

Please sign in to comment.