diff --git a/bom/pom.xml b/bom/pom.xml index fb71a9f..9b1cae8 100644 --- a/bom/pom.xml +++ b/bom/pom.xml @@ -89,6 +89,11 @@ tdlight-java ${revision} + + it.tdlight + tdlight-java-8 + ${revision} + it.tdlight tdlib-java diff --git a/parent/pom.xml b/parent/pom.xml index 51b67df..b26729f 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -15,7 +15,8 @@ - ../tdlight + ../tdlight-java + ../tdlight-java-8 diff --git a/scripts/core/deploy_release.sh b/scripts/core/deploy_release.sh index 1f8eb6a..10d5014 100755 --- a/scripts/core/deploy_release.sh +++ b/scripts/core/deploy_release.sh @@ -11,8 +11,7 @@ fi cd "../../" cd "bom" -mvn -B -Drevision="${REVISION}" -Dtdlight.build.type=legacy clean deploy -mvn -B -Drevision="${REVISION}" -Dtdlight.build.type=standard clean deploy +mvn -B -Drevision="${REVISION}" clean deploy cd "../" echo "Done." diff --git a/scripts/core/deploy_snapshot.sh b/scripts/core/deploy_snapshot.sh index 6bf8c82..4a3d805 100755 --- a/scripts/core/deploy_snapshot.sh +++ b/scripts/core/deploy_snapshot.sh @@ -4,7 +4,7 @@ cd "../../" cd "bom" -mvn -B clean deploy -Dtdlight.build.type=standard +mvn -B clean deploy cd "../" echo "Done." diff --git a/scripts/core/only_compile_release.sh b/scripts/core/only_compile_release.sh index dcdd565..1fdcfc6 100755 --- a/scripts/core/only_compile_release.sh +++ b/scripts/core/only_compile_release.sh @@ -4,8 +4,7 @@ cd "../../" cd "bom" -mvn -B -Dtdlight.build.type=legacy clean package -mvn -B -Dtdlight.build.type=standard clean package +mvn -B clean package cd "../" echo "Done." diff --git a/tdlight/.gitignore b/tdlight-java-8/.gitignore similarity index 100% rename from tdlight/.gitignore rename to tdlight-java-8/.gitignore diff --git a/tdlight-java-8/pom.xml b/tdlight-java-8/pom.xml new file mode 100644 index 0000000..c34ce51 --- /dev/null +++ b/tdlight-java-8/pom.xml @@ -0,0 +1,345 @@ + + 4.0.0 + tdlight-java-8 + TDLight Java Legacy Wrapper + jar + + it.tdlight + ${revision} + tdlight-java-parent + ../parent/pom.xml + + + UTF-8 + 1.0.0.0-SNAPSHOT + + + + mchv-release + MCHV Release Apache Maven Packages + https://mvn.mchv.eu/repository/mchv + + + mchv-snapshot + MCHV Snapshot Apache Maven Packages + https://mvn.mchv.eu/repository/mchv-snapshot + + + + + mchv-release-distribution + MCHV Release Apache Maven Packages Distribution + https://mvn.mchv.eu/repository/mchv + + + mchv-snapshot-distribution + MCHV Snapshot Apache Maven Packages Distribution + https://mvn.mchv.eu/repository/mchv-snapshot + + + + scm:git:https://git.ignuranza.net/tdlight-team/tdlight-java.git + scm:git:https://git.ignuranza.net/tdlight-team/tdlight-java.git + HEAD + + + + it.tdlight + tdlight-api-legacy + + + it.unimi.dsi + fastutil-core + + + org.slf4j + slf4j-api + 2.0.5 + + + org.reactivestreams + reactive-streams + 1.0.4 + + + net.harawata + appdirs + + + com.google.zxing + core + + + org.junit.jupiter + junit-jupiter-engine + 5.9.0 + test + + + + + + it.tdlight + tdlight-java-bom + ${revision} + pom + import + + + + + + releaseDir + + target-release + + + + snapshotDir + + target-snapshot + + + + + ../src/main/java + ../src/test/java + + + maven-clean-plugin + 3.1.0 + + + maven-resources-plugin + 3.0.2 + + + maven-source-plugin + 3.2.1 + + + attach-sources + + jar + + + + + + maven-javadoc-plugin + 3.2.0 + + 17 + -html5 + public + false + true + -Xdoclint:none + -Xdoclint:none + + + + attach-javadocs + + jar + + + + + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.0.0-M3 + + + enforce-jdk9 + + enforce + + + + + [1.9,) + JDK 9+ is required for compilation + + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + UTF-8 + + it/tdlight/tdlib/ClientManager.java + + 8 + + + + + default-compile + none + + + 9 + + + + + java-11-module-compile + + compile + + + 11 + + ../src/main/java11 + + true + + + + + java-9-module-compile + + compile + + + 9 + + + + + java-8-compile + + compile + + + + 8 + + + it/tdlight/tdlib/ClientManager.java + module-info.java + + + + + + + org.codehaus.mojo + flatten-maven-plugin + 1.1.0 + + true + oss + + + + flatten + process-resources + + flatten + + + + flatten.clean + clean + + clean + + + + + + maven-jar-plugin + 3.2.0 + + + + true + + + + + + maven-install-plugin + 3.0.0-M1 + + + maven-deploy-plugin + 2.8.2 + + + org.codehaus.mojo + templating-maven-plugin + 1.0.0 + + + filtering-java-templates + + filter-sources + + + ../src/main/java-templates-tdlight + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 3.0.0-M5 + + + org.junit.jupiter + junit-jupiter-engine + 5.9.0 + + + + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + + org.codehaus.mojo + + + flatten-maven-plugin + + + [1.1.0,) + + + flatten + + + + + + + + + + + + + + diff --git a/tdlight-java/.gitignore b/tdlight-java/.gitignore new file mode 100644 index 0000000..d3464a6 --- /dev/null +++ b/tdlight-java/.gitignore @@ -0,0 +1,151 @@ +# ---> Eclipse +*.pydevproject +.metadata +.gradle +bin/ +tmp/ +*.tmp +*.bak +*.swp +*~.nib +local.properties +.settings/ +.loadpath + +# Eclipse Core +.project + +# External tool builders +.externalToolBuilders/ + +# Locally stored "Eclipse launch configurations" +*.launch + +# CDT-specific +.cproject + +# JDT-specific (Eclipse Java Development Tools) +.classpath + +# Java annotation processor (APT) +.factorypath + +# PDT-specific +.buildpath + +# sbteclipse plugin +.target + +# TeXlipse plugin +.texlipse + +# ---> Java +*.class + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.ear + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* + +# ---> Maven +target/ +pom.xml.tag +pom.xml.releaseBackup +pom.xml.versionsBackup +pom.xml.next +release.properties +dependency-reduced-pom.xml +buildNumber.properties +.mvn/timing.properties + +# Created by https://www.gitignore.io/api/intellij+all + +### Intellij+all ### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/modules.xml +# .idea/*.iml +# .idea/modules + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser + +### Intellij+all Patch ### +# Ignores the whole .idea folder and all .iml files +# See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360 + +.idea/ + +# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023 + +*.iml +modules.xml +.idea/misc.xml +*.ipr + + +# End of https://www.gitignore.io/api/intellij+all \ No newline at end of file diff --git a/tdlight/pom.xml b/tdlight-java/pom.xml similarity index 90% rename from tdlight/pom.xml rename to tdlight-java/pom.xml index 9a5ae2e..097634b 100644 --- a/tdlight/pom.xml +++ b/tdlight-java/pom.xml @@ -1,7 +1,7 @@ 4.0.0 - ${tdlight.lib.artifact.id} + tdlight-java TDLight Java Wrapper jar @@ -13,8 +13,6 @@ UTF-8 1.0.0.0-SNAPSHOT - tdlight-api-legacy - tdlight-java-8 @@ -48,7 +46,7 @@ it.tdlight - ${tdlight.api.artifact.id} + tdlight-api-sealed it.unimi.dsi @@ -103,32 +101,6 @@ target-snapshot - - jdk-with-sealed-interfaces - - - tdlight.build.type - standard - - - - tdlight-api-sealed - tdlight-java - - - - jdk-with-legacy-interfaces - - - tdlight.build.type - legacy - - - - tdlight-api-legacy - tdlight-java-8 - - ../src/main/java