Compare commits

...

13 Commits

Author SHA1 Message Date
Robinson 1c3a54ae22
Merge remote-tracking branch 'origin/master' 2023-10-11 12:17:11 +02:00
Robinson 4b212e2e08
Updated build deps 2023-10-09 12:32:05 +02:00
Robinson 86fb06e8e7
Updated build deps 2023-10-02 23:59:23 +02:00
Robinson 1e3db0d1ad
Version 2.16 2023-10-02 23:49:13 +02:00
Robinson c9755c6c82
NamedThreadFactory is now internal 2023-10-02 16:10:59 +02:00
Robinson 217c3e89ef
version 2.15 2023-09-07 18:21:28 +02:00
Robinson bb2aeec6dc
updated deps 2023-09-07 18:20:43 +02:00
Robinson 16c034e698
updated license 2023-08-20 13:34:10 +02:00
Robinson c75bf05ebc
version 2.14 2023-08-20 13:18:37 +02:00
Robinson 7dabfc9896
updated deps 2023-08-20 13:17:56 +02:00
Robinson f0dae840c0
update gradle 2023-08-19 22:13:16 +02:00
Robinson 36eef77621
version 2.13 2023-08-19 22:12:54 +02:00
Robinson d6bf061351
updated OS library 2023-08-19 22:12:16 +02:00
10 changed files with 42 additions and 34 deletions

24
LICENSE
View File

@ -19,12 +19,6 @@
The Netty Project
Contributors. See source NOTICE
- SLF4J - Simple facade or abstraction for various logging frameworks
[MIT License]
https://www.slf4j.org
Copyright 2023
QOS.ch
- Kotlin -
[The Apache Software License, Version 2.0]
https://github.com/JetBrains/kotlin
@ -33,6 +27,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
- SLF4J - Simple facade or abstraction for various logging frameworks
[MIT License]
https://www.slf4j.org
Copyright 2023
QOS.ch
- Collections - Collection types and utilities to enhance the default collections.
[The Apache Software License, Version 2.0]
https://git.dorkbox.com/dorkbox/Collections
@ -152,12 +152,6 @@
Copyright 2023
JetBrains s.r.o.
- SLF4J - Simple facade or abstraction for various logging frameworks
[MIT License]
https://www.slf4j.org
Copyright 2023
QOS.ch
- JNA - Simplified native library access for Java.
[The Apache Software License, Version 2.0]
https://github.com/twall/jna
@ -170,6 +164,12 @@
Copyright 2023
Timothy Wall
- SLF4J - Simple facade or abstraction for various logging frameworks
[MIT License]
https://www.slf4j.org
Copyright 2023
QOS.ch
- Kotlin -
[The Apache Software License, Version 2.0]
https://github.com/JetBrains/kotlin

View File

@ -17,7 +17,7 @@ Maven Info
<dependency>
<groupId>com.dorkbox</groupId>
<artifactId>NetworkDNS</artifactId>
<version>2.12</version>
<version>2.16</version>
</dependency>
</dependencies>
```
@ -27,7 +27,7 @@ Gradle Info
```
dependencies {
...
implementation("com.dorkbox:NetworkDNS:2.12")
implementation("com.dorkbox:NetworkDNS:2.16")
}
```

View File

@ -25,19 +25,19 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
gradle.startParameter.showStacktrace = ShowStacktrace.ALWAYS // always show the stacktrace!
plugins {
id("com.dorkbox.GradleUtils") version "3.17"
id("com.dorkbox.Licensing") version "2.25"
id("com.dorkbox.GradleUtils") version "3.18"
id("com.dorkbox.Licensing") version "2.28"
id("com.dorkbox.VersionUpdate") version "2.8"
id("com.dorkbox.GradlePublish") version "1.18"
id("com.dorkbox.GradlePublish") version "1.20"
kotlin("jvm") version "1.8.0"
kotlin("jvm") version "1.9.0"
}
object Extras {
// set for the project
const val description = "High-performance and event-driven/reactive DNS stack for Java 8+"
const val group = "com.dorkbox"
const val version = "2.12"
const val version = "2.16"
// set as project.ext
const val name = "NetworkDNS"
@ -85,19 +85,19 @@ tasks.jar.get().apply {
}
dependencies {
api("com.dorkbox:Collections:2.3")
api("com.dorkbox:NetworkUtils:2.22")
api("com.dorkbox:OS:1.6")
api("com.dorkbox:Collections:2.6")
api("com.dorkbox:NetworkUtils:2.23")
api("com.dorkbox:OS:1.8")
api("com.dorkbox:Updates:1.1")
val nettyVer = "4.1.96.Final"
val nettyVer = "4.1.99.Final"
api("io.netty:netty-buffer:$nettyVer")
api("io.netty:netty-transport:$nettyVer")
api("io.netty:netty-transport-native-epoll:$nettyVer")
api("io.netty:netty-transport-classes-kqueue:$nettyVer")
api("io.netty:netty-codec:$nettyVer")
api("org.slf4j:slf4j-api:2.0.7")
implementation("org.slf4j:slf4j-api:2.0.9")
testImplementation("junit:junit:4.13.2")
testImplementation("ch.qos.logback:logback-classic:1.4.5")

Binary file not shown.

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

6
gradlew vendored
View File

@ -205,6 +205,12 @@ set -- \
org.gradle.wrapper.GradleWrapperMain \
"$@"
# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi
# Use "xargs" to parse quoted args.
#
# With -n1 it outputs one arg per line, with the quotes and backslashes removed.

14
gradlew.bat vendored
View File

@ -14,7 +14,7 @@
@rem limitations under the License.
@rem
@if "%DEBUG%" == "" @echo off
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
@ -25,7 +25,7 @@
if "%OS%"=="Windows_NT" setlocal
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
if "%DIRNAME%"=="" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%
@ -40,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome
set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto execute
if %ERRORLEVEL% equ 0 goto execute
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
@ -75,13 +75,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
if %ERRORLEVEL% equ 0 goto mainEnd
:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1
set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%
:mainEnd
if "%OS%"=="Windows_NT" endlocal

View File

@ -84,7 +84,7 @@ class DnsClient(nameServerAddresses: Collection<InetSocketAddress?>? = defaultNa
/**
* Gets the version number.
*/
const val version = "2.12"
const val version = "2.16"
init {
// Add this project to the updates system, which verifies this class + UUID + version information

View File

@ -65,7 +65,7 @@ class DnsServer(host: String?, tcpPort: Int) : Shutdownable(DnsServer::class.jav
/**
* Gets the version number.
*/
const val version = "2.12"
const val version = "2.16"
var workerThreadPoolSize = (Runtime.getRuntime().availableProcessors() / 2).coerceAtLeast(1)

View File

@ -22,7 +22,7 @@ import java.util.concurrent.atomic.*
/**
* The default thread factory with names and daemon state
*/
class NamedThreadFactory(
internal class NamedThreadFactory(
/** @param namePrefix what you want the subsequent threads to be named. */
val namePrefix: String,