Files
spring-statemachine/build.gradle
Janne Valkealahti e62b09d2bb Overhaul gradle build
- Focus of this commit is to have modern gradle build.
- Migrate most of a plugin configurations from dsl
  into buildSrc.
- This fixes issues with existing docs build.
- Allows to sign files so that we have that part
  done for central in a build.
- We can skip publishing samples.
- We're able to share similar logic for modules
  which are meant for publish or just being samples.
- It's easier to upgrade gradle versions without
  getting various build issues.
- Relates #1143
2024-03-14 12:26:47 +00:00

33 lines
695 B
Groovy

plugins {
id "base"
id 'org.springframework.statemachine.root'
}
description = 'Spring Statemachine'
repositories {
maven { url 'https://repo.spring.io/snapshot' }
maven { url 'https://repo.spring.io/milestone' }
maven { url 'https://repo.spring.io/release' }
mavenCentral()
}
allprojects {
group = 'org.springframework.statemachine'
repositories {
mavenCentral()
maven { url 'https://repo.spring.io/release' }
if (version.contains('-')) {
maven { url "https://repo.spring.io/milestone" }
}
if (version.endsWith('-SNAPSHOT')) {
maven { url "https://repo.spring.io/snapshot" }
}
}
configurations.all {
resolutionStrategy.cacheChangingModulesFor 1, 'hours'
}
}