allprojects { apply plugin: 'java' sourceCompatibility = 1.8 targetCompatibility = 1.8 } subprojects { repositories { maven { url 'http://maven.aliyun.com/nexus/content/repositories/central/' } mavenCentral() maven { url "https://repo.spring.io/snapshot" } maven { url "https://repo.spring.io/milestone" } } } repositories { mavenCentral() }