Added updates, bumped major version number for api change

master Version_2.1
Robinson 2021-08-18 17:58:05 -06:00
parent 3a32ca7678
commit b199f0d7e0
4 changed files with 36 additions and 16 deletions

21
LICENSE
View File

@ -20,6 +20,12 @@
Kotlin Compiler, Test Data+Libraries, and Tools repository contain third-party code, to which different licenses may apply
See: https://github.com/JetBrains/kotlin/blob/master/license/README.md
- Bouncy Castle Crypto - Lightweight cryptography API and JCE Extension
[The Apache Software License, Version 2.0]
http://www.bouncycastle.org
Copyright 2021
The Legion of the Bouncy Castle Inc
- Kryo - Fast and efficient binary object graph serialization framework for Java
[BSD 3-Clause License]
https://github.com/EsotericSoftware/kryo
@ -42,8 +48,17 @@
https://github.com/EsotericSoftware/minlog
Nathan Sweet
- Bouncy Castle Crypto - Lightweight cryptography API and JCE Extension
- Updates - Software Update Management
[The Apache Software License, Version 2.0]
http://www.bouncycastle.org
https://git.dorkbox.com/dorkbox/Updates
Copyright 2021
The Legion of the Bouncy Castle Inc
Dorkbox LLC
Extra license information
- Kotlin -
[The Apache Software License, Version 2.0]
https://github.com/JetBrains/kotlin
Copyright 2020
JetBrains s.r.o. and Kotlin Programming Language contributors
Kotlin Compiler, Test Data+Libraries, and Tools repository contain third-party code, to which different licenses may apply
See: https://github.com/JetBrains/kotlin/blob/master/license/README.md

View File

@ -11,7 +11,7 @@ Maven Info
<dependency>
<groupId>com.dorkbox</groupId>
<artifactId>Serializers</artifactId>
<version>1.2</version>
<version>2.0</version>
</dependency>
</dependencies>
```

View File

@ -26,19 +26,19 @@ import java.time.Instant
gradle.startParameter.showStacktrace = ShowStacktrace.ALWAYS // always show the stacktrace!
plugins {
id("com.dorkbox.GradleUtils") version "2.8"
id("com.dorkbox.Licensing") version "2.7"
id("com.dorkbox.VersionUpdate") version "2.3"
id("com.dorkbox.GradleUtils") version "2.9"
id("com.dorkbox.Licensing") version "2.9.2"
id("com.dorkbox.VersionUpdate") version "2.4"
id("com.dorkbox.GradlePublish") version "1.11"
kotlin("jvm") version "1.5.0"
kotlin("jvm") version "1.5.21"
}
object Extras {
// set for the project
const val description = "Kryo based serializers"
const val group = "com.dorkbox"
const val version = "1.2"
const val version = "2.0"
// set as project.ext
const val name = "Serializers"
@ -99,14 +99,14 @@ tasks.jar.get().apply {
}
dependencies {
// listed as compile only, since we will be using kryo ANYWAYS if we use this project. **We don't want a hard dependency.**
compileOnly("com.esotericsoftware:kryo:5.1.1")
implementation("com.dorkbox:Updates:1.1")
// listed as compile only, since we will be using bouncy castle ANYWAYS if we use this project. **We don't want a hard dependency.**
compileOnly("org.bouncycastle:bcprov-jdk15on:1.68")
implementation("com.esotericsoftware:kryo:5.2.0")
testImplementation("com.esotericsoftware:kryo:5.1.1")
testImplementation("org.bouncycastle:bcprov-jdk15on:1.68")
// listed as compile only, since we will be optionally be using bouncy castle if we use this project. **We don't want a hard dependency.**
compileOnly("org.bouncycastle:bcprov-jdk15on:1.69")
testImplementation("org.bouncycastle:bcprov-jdk15on:1.69")
testImplementation("junit:junit:4.13.2")
}

View File

@ -26,7 +26,12 @@ object SerializationDefaults {
/**
* Gets the version number.
*/
const val version = "1.2"
const val version = "2.0"
init {
// Add this project to the updates system, which verifies this class + UUID + version information
dorkbox.updates.Updates.add(SerializationDefaults::class.java, "316353f5338341a8a3edc01d702703f8", version)
}
/**
* Allows for the kryo registration of sensible defaults in a common, well-used way.