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

project('main') {
	apply plugin: 'org.springframework.boot'
	apply plugin: 'java'

	repositories {
		mavenLocal()
		mavenCentral()
	}

	dependencies {
		compile project(':common')
	}

	springBoot {
		mainClass = 'foo.bar.Baz'
	}
}

project('common') {
	apply plugin: 'java'

	repositories {
		mavenLocal()
		mavenCentral()
	}

	dependencies {
		compile "commons-logging:commons-logging:1.1.3"
		compile files { "lib/foo.jar" }
	}
}