plugins {
	id 'java'
	id 'maven-publish'
	id 'org.springframework.boot' version '{version}'
}

// tag::publishing[]
publishing {
	publications {
		bootJava(MavenPublication) {
			artifact bootJar
		}
	}
	repositories {
		maven {
			url 'https://repo.example.com'
		}
	}
}
// end::publishing[]

task publishingConfiguration {
	doLast {
		println publishing.publications.bootJava
		println publishing.repositories.maven.url
	}
}
