All Downloads are FREE. Search and download functionalities are using the official Maven repository.

limero.calimero-testnetwork.2.6-rc1.source-code.build.gradle Maven / Gradle / Ivy

The newest version!
plugins {
    id 'java'
    id 'application'
    id 'eclipse'
    id "com.github.ben-manes.versions" version "0.51.0"
    id 'maven-publish'
    id 'signing'
}

mainClassName = "tuwien.auto.calimero.TestNetwork"

run {
    systemProperties System.getProperties()
    args 'src/main/resources/server-config.xml'
    standardInput = System.in
}

compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
javadoc.options.encoding = 'UTF-8'


group = 'com.github.calimero'
version = '2.6-rc1'

repositories {
    mavenLocal()
    mavenCentral()
    maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
    maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }
}

compileJava.options*.compilerArgs = [
	'-Xlint:all',
	'-Xlint:-options'
]

java {
    toolchain {
        languageVersion.set(JavaLanguageVersion.of(17))
    }
    withSourcesJar()
    withJavadocJar()
}

tasks.withType(Jar).configureEach {
    from("${projectDir}") {
        include 'LICENSE'
        into "META-INF"
    }
    if (name == 'sourcesJar') {
        from("${projectDir}") {
            include 'README.md', 'build.gradle', 'settings.gradle', 'gradle*/**'
        }
    }
}

dependencies {
    implementation group:group, name: 'calimero-server', version:version
    implementation group:group, name: 'calimero-core', version:version
    implementation group:group, name: 'calimero-device', version:version
    runtimeOnly 'org.slf4j:slf4j-simple:2.0.12'
}

publishing {
    publications {
        mavenJava(MavenPublication) {
            artifactId = rootProject.name
            from components.java
            pom {
                name = 'Calimero test network'
                description = 'Test network with KNXnet/IP server and virtual subnet'
                url = 'https://github.com/calimero-project/calimero-testnetwork'
                licenses {
                    license {
                        name = "GNU General Public License, version 2, with the Classpath Exception"
                        url = 'LICENSE'
                    }
                }
                developers {
                    developer {
                        name = "Boris Malinowsky"
                        email = "[email protected]"
                    }
                }
                scm {
                    connection = 'scm:git:git://github.com/calimero-project/calimero-testnetwork.git'
                    url = 'https://github.com/calimero-project/calimero-testnetwork.git'
                }
            }
        }
    }
    repositories {
        maven {
            name 'maven'
            def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
            def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
            url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
            credentials(PasswordCredentials)
        }
    }
}

signing {
    if (project.hasProperty("signing.keyId")) {
        sign publishing.publications.mavenJava
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy