buildscript {
	repositories {
		mavenLocal()
	}
	dependencies {
		classpath "org.springframework.boot:spring-boot-gradle-plugin:${project.bootVersion}"
	}
}

project(':projectA') {
	apply plugin: 'org.springframework.boot'
	repositories {
		mavenLocal()
	}
	dependencies {
		runtime project(':projectB')
	}
	bootRepackage {
		mainClass 'com.foo.Bar'
	}
}

project(':projectB') {
	apply plugin: 'java'
}