/*
 * This build file was generated by the Gradle 'init' task.
 *
 * This generated file contains a sample Java Library project to get you started.
 * For more details take a look at the Java Libraries chapter in the Gradle
 * user guide available at https://docs.gradle.org/4.2.1/userguide/java_library_plugin.html
 */

apply plugin: 'base'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'scala'

sourceCompatibility = '1.8'
version = '0.1.0'

jar {
	manifest {
		attributes 'Implementation-Title': 'OpenDK DB', 'Implementation-Version': version
	}
}

task sourceJar(type: Jar) {
	from sourceSets.main.allSource
	classifier "sources"
}


// In this section you declare where to find the dependencies of your project
repositories {
    // Use jcenter for resolving your dependencies.
    // You can declare any Maven/Ivy/file repository here.
    jcenter()
}

dependencies {
    // This dependency is exported to consumers, that is to say found on their compile classpath.
    //api 'org.apache.commons:commons-math3:3.6.1'

    // This dependency is used internally, and not exposed to consumers on their own compile classpath.
    implementation 'com.google.guava:guava:22.0'

    // Use JUnit test framework
    testImplementation 'junit:junit:4.12'
}


artifacts {
	archives sourceJar
}

uploadArchives {
	repositories {
		mavenDeployer {
			repository(url: "file:///Software/Maven/")
		}
	}
}

publishing {

	repositories {
		maven {
			url "C:/Software/Maven"
		}
	}
	publications {
		mavenJava(MavenPublication) {
			from components.java
			artifact sourceJar
			groupId 'org.opendatakraken'
			artifactId 'opendk-db'
			version '0.1.0'
		}
	}
}
