Compare commits
No commits in common. "2c64779c18cd532f9424b388723aa7019983256a" and "b102f99bd18632f66e81a5eb536bb1d1aea6a2e7" have entirely different histories.
2c64779c18
...
b102f99bd1
14 changed files with 15 additions and 55 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,7 +6,6 @@ lib/bld/**
|
||||||
!lib/bld/bld-wrapper.properties
|
!lib/bld/bld-wrapper.properties
|
||||||
lib/compile/
|
lib/compile/
|
||||||
lib/runtime/
|
lib/runtime/
|
||||||
lib/provided/
|
|
||||||
lib/standalone/
|
lib/standalone/
|
||||||
lib/test/
|
lib/test/
|
||||||
|
|
||||||
|
|
9
.idea/kotlinc.xml
generated
9
.idea/kotlinc.xml
generated
|
@ -1,13 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="KotlinCommonCompilerArguments">
|
|
||||||
<option name="pluginClasspaths">
|
|
||||||
<array>
|
|
||||||
<option value="$KOTLIN_BUNDLED$/lib/kotlinx-serialization-compiler-plugin.jar" />
|
|
||||||
</array>
|
|
||||||
</option>
|
|
||||||
</component>
|
|
||||||
<component name="Kotlin2JvmCompilerArguments">
|
<component name="Kotlin2JvmCompilerArguments">
|
||||||
<option name="jvmTarget" value="1.8" />
|
<option name="jvmTarget" value="1.8" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
|
@ -1,4 +1,4 @@
|
||||||
Copyright (c) 2019-2024, Erik C. Thauvin (erik@thauvin.net)
|
Copyright (c) 2019-2023, Erik C. Thauvin (erik@thauvin.net)
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[](https://opensource.org/licenses/BSD-3-Clause)
|
[](https://opensource.org/licenses/BSD-3-Clause)
|
||||||
[](https://kotlinlang.org/)
|
[](https://kotlinlang.org/)
|
||||||
[](https://rife2.com/bld)
|
[](https://rife2.com/bld)
|
||||||
[](https://github.com/ethauvin/akismet-kotlin/releases/latest)
|
[](https://github.com/ethauvin/akismet-kotlin/releases/latest)
|
||||||
[](https://oss.sonatype.org/content/repositories/snapshots/net/thauvin/erik/akismet-kotlin/)
|
[](https://oss.sonatype.org/content/repositories/snapshots/net/thauvin/erik/akismet-kotlin/)
|
||||||
|
@ -100,7 +100,7 @@ AkismetComment(request = context.getRequest())
|
||||||
|
|
||||||
This will ensure that the user's IP, agent, referrer and various environment variables are automatically extracted from the request.
|
This will ensure that the user's IP, agent, referrer and various environment variables are automatically extracted from the request.
|
||||||
|
|
||||||
[View Full Example](https://github.com/ethauvin/akismet-kotlin/blob/master/examples/gradle/src/main/kotlin/com/example/AkismetServlet.kt)
|
[View Full Example](https://github.com/ethauvin/akismet-kotlin/blob/master/examples/src/main/kotlin/com/example/AkismetServlet.kt)
|
||||||
|
|
||||||
## JSON
|
## JSON
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
bld.downloadExtensionJavadoc=false
|
bld.downloadExtensionJavadoc=false
|
||||||
bld.downloadExtensionSources=true
|
bld.downloadExtensionSources=true
|
||||||
bld.extensions=com.uwyn.rife2:bld-kotlin:0.9.7
|
bld.extensions=com.uwyn.rife2:bld-kotlin:0.9.4
|
||||||
bld.repositories=MAVEN_LOCAL,MAVEN_CENTRAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
|
bld.repositories=MAVEN_LOCAL,MAVEN_CENTRAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
|
||||||
bld.downloadLocation=
|
bld.downloadLocation=
|
||||||
bld.sourceDirectories=
|
bld.sourceDirectories=
|
||||||
|
|
|
@ -3,7 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
plugins {
|
plugins {
|
||||||
id("application")
|
id("application")
|
||||||
id("com.github.ben-manes.versions") version "0.51.0"
|
id("com.github.ben-manes.versions") version "0.51.0"
|
||||||
kotlin("jvm") version "2.0.0"
|
kotlin("jvm") version "1.9.24"
|
||||||
}
|
}
|
||||||
|
|
||||||
defaultTasks(ApplicationPlugin.TASK_RUN_NAME)
|
defaultTasks(ApplicationPlugin.TASK_RUN_NAME)
|
||||||
|
|
|
@ -3,7 +3,7 @@ bld.downloadExtensionSources=true
|
||||||
bld.extensions-detekt=com.uwyn.rife2:bld-detekt:0.9.2
|
bld.extensions-detekt=com.uwyn.rife2:bld-detekt:0.9.2
|
||||||
bld.extensions=com.uwyn.rife2:bld-generated-version:0.9.5
|
bld.extensions=com.uwyn.rife2:bld-generated-version:0.9.5
|
||||||
bld.extension-jacoco=com.uwyn.rife2:bld-jacoco-report:0.9.5
|
bld.extension-jacoco=com.uwyn.rife2:bld-jacoco-report:0.9.5
|
||||||
bld.extensions-kotlin=com.uwyn.rife2:bld-kotlin:0.9.7
|
bld.extensions-kotlin=com.uwyn.rife2:bld-kotlin:0.9.4
|
||||||
bld.repositories=MAVEN_LOCAL,MAVEN_CENTRAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
|
bld.repositories=MAVEN_LOCAL,MAVEN_CENTRAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
|
||||||
bld.downloadLocation=
|
bld.downloadLocation=
|
||||||
bld.sourceDirectories=
|
bld.sourceDirectories=
|
||||||
|
|
Binary file not shown.
BIN
lib/provided/kotlin-serialization-compiler-plugin-1.9.24.jar
Normal file
BIN
lib/provided/kotlin-serialization-compiler-plugin-1.9.24.jar
Normal file
Binary file not shown.
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* AkismetBuild.java
|
* AkismetBuild.java
|
||||||
*
|
*
|
||||||
* Copyright 2019-2024 Erik C. Thauvin (erik@thauvin.net)
|
* Copyright 2019-2023 Erik C. Thauvin (erik@thauvin.net)
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions are met:
|
* modification, are permitted provided that the following conditions are met:
|
||||||
|
@ -53,7 +53,6 @@ import static rife.bld.dependencies.Repository.*;
|
||||||
import static rife.bld.dependencies.Scope.*;
|
import static rife.bld.dependencies.Scope.*;
|
||||||
|
|
||||||
public class AkismetBuild extends Project {
|
public class AkismetBuild extends Project {
|
||||||
private static final String DETEKT_BASELINE = "config/detekt/baseline.xml";
|
|
||||||
final File srcMainKotlin = new File(srcMainDirectory(), "kotlin");
|
final File srcMainKotlin = new File(srcMainDirectory(), "kotlin");
|
||||||
|
|
||||||
public AkismetBuild() {
|
public AkismetBuild() {
|
||||||
|
@ -67,7 +66,7 @@ public class AkismetBuild extends Project {
|
||||||
repositories = List.of(MAVEN_LOCAL, MAVEN_CENTRAL);
|
repositories = List.of(MAVEN_LOCAL, MAVEN_CENTRAL);
|
||||||
|
|
||||||
var okHttp = version(4, 12, 0);
|
var okHttp = version(4, 12, 0);
|
||||||
final var kotlin = version(2, 0, 0);
|
final var kotlin = version(1, 9, 24);
|
||||||
scope(compile)
|
scope(compile)
|
||||||
.include(dependency("org.jetbrains.kotlin", "kotlin-stdlib", kotlin))
|
.include(dependency("org.jetbrains.kotlin", "kotlin-stdlib", kotlin))
|
||||||
.include(dependency("com.squareup.okhttp3", "okhttp", okHttp))
|
.include(dependency("com.squareup.okhttp3", "okhttp", okHttp))
|
||||||
|
@ -77,7 +76,7 @@ public class AkismetBuild extends Project {
|
||||||
scope(provided)
|
scope(provided)
|
||||||
.include(dependency("org.jetbrains.kotlin", "kotlin-serialization-compiler-plugin", kotlin));
|
.include(dependency("org.jetbrains.kotlin", "kotlin-serialization-compiler-plugin", kotlin));
|
||||||
scope(test)
|
scope(test)
|
||||||
.include(dependency("org.mockito", "mockito-core", version(5, 12, 0)))
|
.include(dependency("org.mockito", "mockito-core", version(5, 11, 0)))
|
||||||
.include(dependency("org.jetbrains.kotlin", "kotlin-test-junit5", kotlin))
|
.include(dependency("org.jetbrains.kotlin", "kotlin-test-junit5", kotlin))
|
||||||
.include(dependency("org.junit.jupiter", "junit-jupiter", version(5, 10, 2)))
|
.include(dependency("org.junit.jupiter", "junit-jupiter", version(5, 10, 2)))
|
||||||
.include(dependency("org.junit.platform", "junit-platform-console-standalone", version(1, 10, 2)))
|
.include(dependency("org.junit.platform", "junit-platform-console-standalone", version(1, 10, 2)))
|
||||||
|
@ -145,7 +144,7 @@ public class AkismetBuild extends Project {
|
||||||
public void detekt() throws ExitStatusException, IOException, InterruptedException {
|
public void detekt() throws ExitStatusException, IOException, InterruptedException {
|
||||||
new DetektOperation()
|
new DetektOperation()
|
||||||
.fromProject(this)
|
.fromProject(this)
|
||||||
.baseline(DETEKT_BASELINE)
|
.baseline("config/detekt/baseline.xml")
|
||||||
.execute();
|
.execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -153,7 +152,7 @@ public class AkismetBuild extends Project {
|
||||||
public void detektBaseline() throws ExitStatusException, IOException, InterruptedException {
|
public void detektBaseline() throws ExitStatusException, IOException, InterruptedException {
|
||||||
new DetektOperation()
|
new DetektOperation()
|
||||||
.fromProject(this)
|
.fromProject(this)
|
||||||
.baseline(DETEKT_BASELINE)
|
.baseline("config/detekt/baseline.xml")
|
||||||
.createBaseline(true)
|
.createBaseline(true)
|
||||||
.execute();
|
.execute();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* Akismet.kt
|
* Akismet.kt
|
||||||
*
|
*
|
||||||
* Copyright 2019-2024 Erik C. Thauvin (erik@thauvin.net)
|
* Copyright 2019-2023 Erik C. Thauvin (erik@thauvin.net)
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions are met:
|
* modification, are permitted provided that the following conditions are met:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* AkismetComment.kt
|
* AkismetComment.kt
|
||||||
*
|
*
|
||||||
* Copyright 2019-2024 Erik C. Thauvin (erik@thauvin.net)
|
* Copyright 2019-2023 Erik C. Thauvin (erik@thauvin.net)
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions are met:
|
* modification, are permitted provided that the following conditions are met:
|
||||||
|
|
|
@ -1,34 +1,3 @@
|
||||||
/*
|
|
||||||
* GeneratedVersion.kt
|
|
||||||
*
|
|
||||||
* Copyright 2019-2024 Erik C. Thauvin (erik@thauvin.net)
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without
|
|
||||||
* modification, are permitted provided that the following conditions are met:
|
|
||||||
*
|
|
||||||
* Redistributions of source code must retain the above copyright notice, this
|
|
||||||
* list of conditions and the following disclaimer.
|
|
||||||
*
|
|
||||||
* Redistributions in binary form must reproduce the above copyright notice,
|
|
||||||
* this list of conditions and the following disclaimer in the documentation
|
|
||||||
* and/or other materials provided with the distribution.
|
|
||||||
*
|
|
||||||
* Neither the name of this project nor the names of its contributors may be
|
|
||||||
* used to endorse or promote products derived from this software without
|
|
||||||
* specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
||||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
||||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
||||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
||||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
||||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
||||||
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
||||||
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is automatically generated.
|
* This file is automatically generated.
|
||||||
* Do not modify! -- ALL CHANGES WILL BE ERASED!
|
* Do not modify! -- ALL CHANGES WILL BE ERASED!
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/*
|
/*
|
||||||
* AkismetTest.kt
|
* AkismetTest.kt
|
||||||
*
|
*
|
||||||
* Copyright 2019-2024 Erik C. Thauvin (erik@thauvin.net)
|
* Copyright 2019-2023 Erik C. Thauvin (erik@thauvin.net)
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions are met:
|
* modification, are permitted provided that the following conditions are met:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue