group 'nl.astraeus.tst' version '1.0-SNAPSHOT' apply plugin: 'kotlin' apply plugin: 'idea' apply plugin: 'application' sourceSets { main.java.srcDirs += 'src' } mainClassName = "nl.astraeus.tst.MainKt" sourceCompatibility = 1.8 repositories { maven { url "http://nexus.astraeus.nl/nexus/content/groups/public" } } buildscript { ext.kotlin_version = '0.14.451' repositories { mavenCentral() jcenter() } dependencies { classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } dependencies { testCompile group: 'junit', name: 'junit', version: '4.11' compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" } uploadArchives { repositories { apply plugin: 'maven' mavenDeployer { repository(url: "http://nexus.astraeus.nl/nexus/content/repositories/snapshots") { authentication(userName: nexusUsername, password: nexusPassword) } pom.version = "1.0-SNAPSHOT" pom.artifactId = "gradle-tst" pom.groupId = "nl.astraeus.tst" } } }