You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iec61850bean/configuration.gradle

111 lines
2.6 KiB
Groovy

8 years ago
project.ext {
cfgVersion = "1.8.1-SNAPSHOT"
cfgGroup = "com.beanit"
8 years ago
cfgCopyDependencies = true
8 years ago
cfgCopyToRoot = false
8 years ago
cfgSignPom = true
8 years ago
cfgJavaVersion = "8"
cfgRepository = project.properties.sonatypeRepository
8 years ago
cfgSnapshotRepository = project.properties.sonatypeSnapshotRepository
8 years ago
cfgRepositoryUser = project.properties.sonatypeUser
8 years ago
cfgRepositoryPass = project.properties.sonatypePass
8 years ago
cfgStagingProfileId = project.properties.sonatypeStagingProfileId
javaProjects = allprojects
8 years ago
distributionProjects = javaProjects
8 years ago
docProjects = javaProjects
8 years ago
repositoryProjects = javaProjects
8 years ago
}
tasks.withType(Tar) {
into(project.name) {
from("./") {
include "build.gradle"
include "configuration.gradle"
include "settings.gradle"
include "LICENSE.txt"
include "doc/**"
include "bin/**"
include "gradle/wrapper/**"
include "gradlew"
include "gradlew.bat"
include "build/libs-all/**"
include "src/**"
include "asn1/**"
}
8 years ago
}
into(project.name + "/doc/") {
from("./build/docs/") {
include "javadoc/**"
}
8 years ago
}
}
//------------------project specific configurations--------------------
apply plugin: "java"
apply plugin: "eclipse"
apply plugin: "maven"
apply plugin: "signing"
def projectName = "OpenIEC61850"
8 years ago
dependencies {
implementation group: "com.beanit", name: "jasn1", version: "1.11.0"
implementation group: "com.toedter", name: "jcalendar", version: "1.4"
implementation group: "org.slf4j", name: "slf4j-api", version: "1.7.25"
runtimeOnly group: "ch.qos.logback", name: "logback-classic", version: "1.2.3"
8 years ago
}
jar {
bnd("Bundle-Name": "OpenIEC61850",
"Bundle-SymbolicName": "com.beanit.openiec61850",
"-exportcontents": "!*.internal.*,*",
"Import-Package": "com.beanit.jasn1.*,javax.net,*;resolution:=optional")
8 years ago
}
sourceSets {
main {
java.srcDirs = ["src/main/java", "src/main/java-gen"]
}
8 years ago
}
uploadArchives {
repositories {
mavenDeployer {
pom.project {
name "OpenIEC61850"
description "OpenIEC61850 is a Java library implementing the IEC 61850 MMS communication standard for clients and servers."
licenses {
license {
name "Apache License, Version 2.0"
url "http://www.apache.org/licenses/LICENSE-2.0"
distribution "repo"
}
}
}
8 years ago
}
}
}