Skip to content

Commit

Permalink
Merge pull request #622 from hexagonkt/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
jaguililla authored Apr 24, 2023
2 parents 48704ba + 18f3f6c commit 601a00f
Show file tree
Hide file tree
Showing 13 changed files with 36 additions and 33 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ jobs:
run: ./gradlew --info --stacktrace build

- name: Build Site
run: ./gradlew -x build buildSite

- name: Diagnose Site
if: failure()
run: ./gradlew --info --stacktrace -x build buildSite

- name: Check Build
Expand Down
3 changes: 1 addition & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import com.github.jk1.license.render.CsvReportRenderer
import com.github.jk1.license.render.InventoryHtmlReportRenderer
import com.github.jk1.license.render.InventoryMarkdownReportRenderer
import com.github.jk1.license.render.ReportRenderer
import io.gitlab.arturbosch.detekt.Detekt

/*
* Main build script, responsible for:
Expand All @@ -26,7 +25,7 @@ plugins {
id("project-report")
id("org.jetbrains.dokka") version("1.8.10")
id("com.github.jk1.dependency-license-report") version("2.1")
id("org.jetbrains.kotlinx.binary-compatibility-validator") version("0.13.0")
id("org.jetbrains.kotlinx.binary-compatibility-validator") version("0.13.1")
id("org.graalvm.buildtools.native") version("0.9.21") apply(false)
id("io.gitlab.arturbosch.detekt") version("1.22.0") apply(false)
id("me.champeau.jmh") version("0.7.0") apply(false)
Expand Down
9 changes: 5 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ org.gradle.warning.mode=all
org.gradle.console=plain

# Gradle
version=2.8.0
version=2.8.1
group=com.hexagonkt
description=The atoms of your platform

Expand Down Expand Up @@ -39,7 +39,7 @@ mockkVersion=1.13.5
junitVersion=5.9.2
gatlingVersion=3.9.3
jmhVersion=1.36
mkdocsMaterialVersion=9.1.6
mkdocsMaterialVersion=9.1.7
mermaidDokkaVersion=0.4.4
nativeToolsVersion=0.9.21

Expand All @@ -49,13 +49,14 @@ jettyVersion=11.0.15

# http_server_netty
nettyVersion=4.1.91.Final
nettyTcNativeVersion=2.0.60.Final

# logging
slf4jVersion=2.0.7
logbackVersion=1.4.6
logbackVersion=1.4.7

# serialization
jacksonVersion=2.14.2
jacksonVersion=2.15.0
dslJsonVersion=1.10.0

# templates_freemarker
Expand Down
14 changes: 4 additions & 10 deletions gradle/icons.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,23 @@ task("icons").doLast {

final String logoSmall = findProperty("logoSmall") ?: findProperty("logo")
final String logoLarge = findProperty("logoLarge") ?: logoSmall
final String iconsDirectory = findProperty("iconsDirectory") ?: "icons"
final String iconsDirectory = findProperty("iconsDirectory") ?: "${buildDir.name}/icons"

project.file("${buildDir.name}/icons").mkdirs()
project.file(iconsDirectory).mkdirs()

createPng(logoSmall, "$iconsDirectory/favicon.png", 32, 32)
createPng(logoSmall, "$iconsDirectory/icon-small.png", 180, 180)
createPng(logoLarge, "$iconsDirectory/icon-large.png", 512, 512)
}

private void createPng(final String svg, final String out, final int width, final int height) {

exec {
final String geometry = "${width}x${height}"
commandLine("convert", "-background", "none", "-resize", geometry, svg, "$buildDir/$out")
}

exec {
commandLine(
"convert",
"-gravity", "center",
"-background", "transparent",
"-extent", "${width}x${height}",
"$buildDir/$out",
"-resize", "${width}x${height}",
svg,
"$buildDir/$out"
)
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https://services.gradle.org/distributions/gradle-8.1-all.zip
distributionUrl=https://services.gradle.org/distributions/gradle-8.1.1-all.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
6 changes: 6 additions & 0 deletions http_server_netty/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,18 @@ apply(from = "../gradle/native.gradle")

dependencies {
val nettyVersion = properties["nettyVersion"]
val nettyTcNativeVersion = properties["nettyTcNativeVersion"]

"api"(project(":http_server"))
"api"(platform("io.netty:netty-bom:$nettyVersion"))
"api"("io.netty:netty-codec-http") { exclude(group = "org.slf4j") }
"api"("io.netty:netty-codec-http2") { exclude(group = "org.slf4j") }

if (System.getProperty("os.name").lowercase().contains("mac"))
"api"("io.netty:netty-tcnative:$nettyTcNativeVersion:osx-x86_64") {
exclude(group = "org.slf4j")
}

"testImplementation"(project(":http_test"))
"testImplementation"(project(":http_client_jetty_ws"))
"testImplementation"(project(":serialization_jackson_json"))
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[
{
"name": "io.netty.handler.ssl.JdkSslServerContext",
"allPublicMethods": true,
"allDeclaredFields": true,
"allDeclaredMethods": true,
"allDeclaredConstructors": true
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ internal class AdapterBooksTest : BooksTest(clientAdapter, serverAdapter)
internal class AdapterErrorsTest : ErrorsTest(clientAdapter, serverAdapter)
internal class AdapterFiltersTest : FiltersTest(clientAdapter, serverAdapter)
internal class AdapterClientTest : ClientTest(clientAdapter, serverAdapter, formats)
@DisabledIfSystemProperty(named = "nativeTest", matches = "true") // TODO Fix this (works in Linux)
internal class AdapterHttpsTest : HttpsTest(clientAdapter, serverAdapter)
internal class AdapterZipTest : ZipTest(clientAdapter, serverAdapter)
internal class AdapterCookiesTest : CookiesTest(clientAdapter, serverAdapter)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
Args= \
--enable-preview \
-H:IncludeResources=.*
Args=-H:IncludeResources=.*
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
Args= \
--enable-preview \
-H:IncludeResources=.* \
--initialize-at-build-time=org.junit.jupiter.api.condition.OS
3 changes: 1 addition & 2 deletions serialization_jackson/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ dependencies {
val jacksonVersion = properties["jacksonVersion"]

"api"(project(":serialization"))
"api"(platform("com.fasterxml.jackson:jackson-bom:$jacksonVersion"))
"api"("com.fasterxml.jackson.core:jackson-databind")
"api"("com.fasterxml.jackson.core:jackson-databind:$jacksonVersion")

"testImplementation"("org.jetbrains.kotlin:kotlin-reflect")
"testImplementation"("com.fasterxml.jackson.module:jackson-module-kotlin") {
Expand Down
3 changes: 1 addition & 2 deletions serialization_jackson_yaml/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ dependencies {
val jacksonVersion = properties["jacksonVersion"]

"api"(project(":serialization_jackson"))
"api"(platform("com.fasterxml.jackson:jackson-bom:$jacksonVersion"))
"api"("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml")
"api"("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:$jacksonVersion")

"testImplementation"(project(":serialization_test"))
}
10 changes: 6 additions & 4 deletions starters/kotlin_pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,15 @@
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.1.0</version>
<executions>
<execution>
<id>build_properties</id>
<id>build-properties</id>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<propertyfile file="${project.build.outputDirectory}/META-INF/build.properties">
Expand All @@ -256,11 +260,9 @@
</propertyfile>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>jpackage</id>
<goals>
<goal>run</goal>
</goals>
Expand Down

0 comments on commit 601a00f

Please sign in to comment.