1buildscript { 2 repositories { 3 google() 4 mavenCentral() 5 } 6 dependencies { 7 classpath 'com.android.tools.build:gradle:7.0.0' 8 } 9} 10 11plugins { 12 id 'io.github.gradle-nexus.publish-plugin' version '1.1.0' 13} 14 15group = 'software.amazon.awssdk.crt' 16version = '1.0.0-dev' 17 18 19if (project.hasProperty("sonatypeUsername") && project.hasProperty("sonatypePassword")) { 20 apply plugin: 'io.github.gradle-nexus.publish-plugin' 21 nexusPublishing { 22 repositories { 23 create("awsNexus") { 24 nexusUrl.set(uri("https://aws.oss.sonatype.org/service/local/")) 25 snapshotRepositoryUrl.set(uri("https://aws.oss.sonatype.org/content/repositories/snapshots/")) 26 username.set(project.property("sonatypeUsername") as String) 27 password.set(project.property("sonatypePassword") as String) 28 } 29 } 30 } 31} 32 33allprojects { 34 repositories { 35 google() 36 mavenCentral() 37 } 38} 39 40task clean(type: Delete) { 41 delete rootProject.buildDir 42} 43