Skip to content
Snippets Groups Projects
build.gradle 2.52 KiB
Newer Older
/*
 * This file was generated by the Gradle 'init' task.
 *
 * This generated file contains a sample Java project to get you started.
 * For more details take a look at the Java Quickstart chapter in the Gradle
 * User Manual available at https://docs.gradle.org/6.5/userguide/tutorial_java_projects.html
 */

plugins {
    id 'java'
    id 'java-library'
    id 'maven-publish'
    id 'signing'
dependencies {
Reiner Jung's avatar
Reiner Jung committed
    implementation 'net.kieker-monitoring:kieker:1.15-SNAPSHOT' 
}

sourceSets {
  main {
    java {
       srcDirs= [ 'src/main/java', 'src/gen/java' ]
    }
java {
    withJavadocJar()
    withSourcesJar()
}

publishing {
    publications {
        mavenJava(MavenPublication) {
            groupId = 'org.oceandsl'
            artifactId = 'common'
            version = '1.1'
            pom {
                name = 'OceanDSL Common'
                description = 'Common facilities of the OceanDSL tool chain'
                url = 'http://oceandsl.uni-kiel.de'
         //       properties = [
         //           myProp: "value",
         //           "prop.with.dots": "anotherValue"
         //       ]
                licenses {
                    license {
                        name = 'The Apache License, Version 2.0'
                        url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
                    }
                }
                developers {
                    developer {
                        id = 'rju'
                        name = 'Reiner Jung'
                        email = 'reiner.jung@email.uni-kiel.de'
                    }
                }
                scm {
                    connection = 'scm:git:https://git.se.informatik.uni-kiel.de/oceandsl/oceandsl-java-tools.git'
                    developerConnection = 'scm:git:gitlab@git.se.informatik.uni-kiel.de:oceandsl/oceandsl-java-tools.git'
                    url = 'https://git.se.informatik.uni-kiel.de/oceandsl/oceandsl-java-tools/'
                }
            }
        }
    }
    repositories {
        maven {
            // change URLs to point to your repos, e.g. http://my.org/repo
            def releasesRepoUrl = layout.buildDirectory.dir('repos/releases')
            def snapshotsRepoUrl = layout.buildDirectory.dir('repos/snapshots')
            url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
        }
    }
}

signing {
    sign publishing.publications.mavenJava
}


//javadoc {
//    if(JavaVersion.current().isJava9Compatible()) {
//        options.addBooleanOption('html5', true)
//    }
//}