Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions 21 Core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group 'com.scaleoutsoftware.digitaltwin'
version '3.2.1'
version '3.2.2'

sourceCompatibility = JavaVersion.VERSION_12

Expand All @@ -19,15 +19,32 @@ configurations {
archives
}

task myJavadocs(type: Javadoc) {
task createJavadocs(type: Javadoc) {
source = sourceSets.main.allJava
}

task javadocJar(type: Jar, dependsOn: createJavadocs) {
setArchiveClassifier('javadoc')
from javadoc.destinationDir
}


task sourcesJar(type: Jar, dependsOn: classes) {
setArchiveClassifier('sources')
from sourceSets.main.allSource
}

jar {
manifest {
attributes ('Implementation-Title': project.name,
'Implementation-Version': project.version)
}
}

task copyRuntime(type: GradleBuild) {
tasks = ['javadocJar', 'sourcesJar']
}

build.finalizedBy copyRuntime


Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ public static PersistenceProviderType fromString(String name) {
return DynamoDb;
case "Azure Cosmos DB":
return CosmosDb;
case "Default":
case "default":
return Unconfigured;
default:
return null;
}
Expand All @@ -108,6 +111,8 @@ public static PersistenceProviderType fromString(String name) {
*/
public static PersistenceProviderType fromOrdinal(int ordinal) {
switch(ordinal) {
case 0:
return Unconfigured;
case 1:
return AzureDigitalTwinsService;
case 3:
Expand Down
30 changes: 29 additions & 1 deletion 30 Development/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,38 @@ repositories {
dependencies {
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.20.0'
testImplementation group: 'junit', name: 'junit', version: '4.12'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.5'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.11.0'
// public build configuration
//implementation group: 'com.scaleoutsoftware.digitaltwin', name: 'core', version: '3.0.9'

// local build configuration
implementation fileTree(dir: '..\\Core\\build\\libs\\', include: '*.jar')
}

task createJavadocs(type: Javadoc) {
source = sourceSets.main.allJava
classpath = sourceSets.main.runtimeClasspath
}

task javadocJar(type: Jar, dependsOn: createJavadocs) {
setArchiveClassifier('javadoc')
from javadoc.destinationDir
}

task sourcesJar(type: Jar, dependsOn: classes) {
setArchiveClassifier('sources')
from sourceSets.main.allSource
}

jar {
manifest {
attributes ('Implementation-Title': project.name,
'Implementation-Version': project.version)
}
}

task copyRuntime(type: GradleBuild) {
tasks = ['javadocJar', 'sourcesJar']
}

build.finalizedBy copyRuntime
Morty Proxy This is a proxified and sanitized view of the page, visit original site.