Commit Graph

302 Commits

Author SHA1 Message Date
Jiayu Liu
d40dd7203e
use gradle 8.4 (#2869) 2023-10-19 08:37:49 +08:00
Mario Emmenlauer
a4e7b9a4a0 build/cmake/GenerateConfigModule.cmake: Do not install 'FindLibevent.cmake' if libevent is disabled 2023-10-12 14:50:55 +02:00
Mario Emmenlauer
c5a5f79d7a build/cmake/DefinePlatformSpecifc.cmake: Separated MSVC and Clang-Cl settings for Windows 2023-10-11 16:46:19 +02:00
Sergei Elin
4576409657 THRIFT-5635 Update erlang client for Erlang 23-25
Client: erl
Patch: Sergey Yelin

This closes #2677

Summary of changes:
 - Add useful compiler options
 - Format sources using erlfmt
 - Switch to modern callbacks in thrift_* modules
 - Add static analysis (dialyzer), disabled by default
 - Add/fix types for API calls

NOTE: Enabling static analysis requires additional tweaks in multiplexer module.
2023-07-22 13:16:08 +02:00
Sutou Kouhei
fe1f69ab2e
THRIFT-5668: Install FindLibevent.cmake (#2726)
Client: cpp

ThriftConfig.cmake uses our FindLibevent.cmake but "make install"
doesn't install FindLibevent.cmake. It causes an error with
find_package(Thrift) like the following:

    -- Found thrift: /tmp/xxx/tmp/local
    -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.13")
    -- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "3.0.7")
    CMake Warning at /usr/share/cmake-3.24/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
      By not providing "FindLibevent.cmake" in CMAKE_MODULE_PATH this project has
      asked CMake to find a package configuration file provided by "Libevent",
      but CMake did not find one.

      Could not find a package configuration file provided by "Libevent" with any
      of the following names:

        LibeventConfig.cmake
        libevent-config.cmake

      Add the installation prefix of "Libevent" to CMAKE_PREFIX_PATH or set
      "Libevent_DIR" to a directory containing one of the above files.  If
      "Libevent" provides a separate development package or SDK, be sure it has
      been installed.
    Call Stack (most recent call first):
      /tmp/xxx/tmp/local/lib/cmake/thrift/ThriftConfig.cmake:93 (find_dependency)
2023-04-27 08:48:04 +08:00
Jiayu Liu
be73a570e2
THRIFT-5699: java lib and build tool chain: gradle 8.0.2 (#2779) 2023-04-14 11:02:43 +08:00
Jiayu Liu
79a4b1e9a3
update gradle to version 7.6 (#2744)
* update gradle to version 7.6

* update hash
2023-04-09 15:39:20 +08:00
Jens Geyer
51fc54f8c1 THRIFT-5684 upgrade to net7.0:
Client: netstd
Patch: Jens Geyer
2023-02-16 09:06:37 +01:00
Jens Geyer
4eee681527 fix veralign.sh 2023-02-06 23:40:56 +01:00
Yuxuan 'fishy' Wang
b94eac7ca0 Update supported go versions
Following our policy regarding supported go releases, change the
supported go versions to 1.19.* and 1.20.* with the release of go 1.20.
2023-02-02 12:59:53 -08:00
Kino Roy
c495448024
THRIFT-5657: Use Swift 5.7 in travis build (#2719) 2022-11-20 14:52:04 +08:00
Chris Friedt
ef3d52e04c build: docker: scripts: autotools: do not fail if .m2/ exists
Previously, when doing manual runs inside of the docker container,
the `autotools.sh` script would fail if the `.m2/` directory already
existed. This was a minor annoyance.

Simply pass the `-p` flag to `mkdir`.

Signed-off-by: Chris Friedt <cfriedt@meta.com>
2022-10-23 22:08:51 +02:00
Yuxuan 'fishy' Wang
19c13b4cc6 THRIFT-5650: Implement UUID in Go library
Client: go

This is only the library part of THRIFT-5650. I still have some open
questions for the compiler part so that will be done later.

While I'm here, also made some changes to go CI process:

* Update ubuntu-bionic to use go 1.18 for travis
* Update ubuntu-jammy to use the latest go 1.19.x for travis
* Run both go 1.18 and 1.19 for github actions
* Also run test/go tests for github actions
2022-10-21 10:36:06 -07:00
Jiayu Liu
92b007fa88
java to use jdk 17 (#2686) 2022-10-14 13:16:18 +08:00
Jiayu Liu
564b287404
add ubuntu jammy in build infra (#2684) 2022-10-12 11:42:38 +08:00
Hamza Anis
32bd0bd950
Bump go version to 1.9.2 and update hashes (#2701) 2022-10-11 11:47:11 +08:00
Jiayu Liu
1d61fe1c1f
THRIFT-5633: move xenial to old, deprecate xenial in travis build (#2690)
* move xenial to old, deprecate xenial in travis build

* add back stage of docker
2022-10-10 08:45:10 +08:00
Jiayu Liu
11031cc23a
remove --disable-sandboxing in bionic (#2683) 2022-09-27 17:29:01 +08:00
Jiayu Liu
f31c588ea3
[build infra] focal to use openjdk 11 instead of 17 to get rid of false errors (#2662)
* java 17

* use --debug for java gradle build

* add --debug

* update javadoc options within gradle

* revert back to jdk 11
2022-09-27 14:06:57 +08:00
Jiayu Liu
c5d0324a79
THRIFT-5641: [build infra] install deps for swift in bionic and focal dockerfile (#2678)
* install deps for swift in bionic and focal dockerfile

* update add -yq for apt-get update

* remove cppcheck version fixes

* use bionic not focal for now

* Revert "use bionic not focal for now"

This reverts commit e3093477f0bf91122957616f1d9c768c675e03dc.
2022-09-26 23:04:26 +08:00
Jiayu Liu
fb7df3cbe6
[build infra][ocaml] disable opam sandboxing for ubuntu bionic and focal (#2671)
* disable opam sandboxing for ubuntu focal

* update bionic as well
2022-09-24 08:59:30 +08:00
Jiayu Liu
f027deeaa8
THRIFT-5574: add ubuntu focal build (#2528)
* add ubuntu focal build

* remove py2 in focal

* indentation

* apply latest updates

* update swift version

* use java 17 in focal

* adopt focal
2022-09-19 14:26:37 +08:00
Jiayu Liu
7909e5c9df
move ubuntu disco to old folder (#2663) 2022-09-17 15:10:55 +08:00
Mario Emmenlauer
c11c821395 build/cmake/ThriftConfig.cmake.in: Allow cmake users to override 'THRIFT_COMPILER' 2022-09-09 10:40:58 +02:00
Jiayu Liu
8a32156dd2 update gradle version to 7.5.1 and update hashes 2022-09-07 00:33:09 +02:00
Tdxdxoz
85d82bfd0c THRIFT-5600: upgrade rust toolchain to 1.61 and edition 2021
THRIFT-5606: Wrong indent for const double
Client: rs
Patch: Ommy Zhang <tdxdxoz@gmail.com>

This closes #2634
2022-09-01 22:05:45 +02:00
Max-Gerd Retzlaff
04057ac28a Revert "THRIFT-5501 Remove Common Lisp support"
This reverts commit d88d4f93b3.
2022-08-30 23:58:57 +02:00
Yuxuan 'fishy' Wang
3f9b7d0da2 Update supported go version to 1.18.* and 1.19.*
Client: go

Also provide generic version of Pointer helper function.
2022-08-02 22:19:43 -07:00
Jiayu Liu
5b158389b0
THRIFT-5581: use gradle 7 for java/kotlin (#2601)
* upgrade gradle version to 7.4
* migrate from `maven` plugin to `maven-publish` plugin as required for Gradle 7
* add guard to ktfmt, since it can't run with JDK 8

Co-authored-by: Christopher Tubbs <ctubbsii@apache.org>
2022-05-11 12:20:37 -04:00
Jiayu Liu
23b86364ef
THRIFT-5570: update java lib document about gradle usage (#2583)
* update java doc about gradle usage
* update .gitignore
2022-05-06 00:42:18 -04:00
Christopher Tubbs
3df6a03a2f [CI] Appveyor - refresh pacman database on upgrade
Add -y (--refresh) flag to pacman when also doing a system upgrade with
-u (--sysupgrade). This ensures that its database is refreshed in the
case where pacman core is upgraded after the previous refresh.
2022-05-05 16:57:30 -04:00
Jiayu Liu
40496a7c43 use 45 min timeout 2022-04-27 12:49:55 +02:00
Jiayu Liu
9042cc298c wait for 45 minutes 2022-04-27 12:49:55 +02:00
Yuxuan 'fishy' Wang
8045d82f0d Update Go versions used in travis and LANGUAGES.md
Per our support policy, drop support of go 1.16 and add support of go
1.18.

Also enable go vet in make check, and fix issues reported by go vet.
2022-04-25 16:00:53 -07:00
Jiayu Liu
5d220eb332 THRIFT-5562: remove gradle wrapper and use installed gradle 6.9
Client: java
Patch: Jiayu Liu

This closes #2576
2022-04-19 18:40:52 +02:00
Aki Sukegawa
7594da8d7a THRIFT-5536 Fix cross language tests 2022-03-08 16:06:00 -05:00
Jens Geyer
d88d4f93b3 THRIFT-5501 Remove Common Lisp support
Client: cl
Patch: Jens Geyer
2022-03-06 14:58:37 +01:00
Yuxuan 'fishy' Wang
bbc7c5f65e Bump the versions of Go used in Travis
Bump the versions of Go used in Travis to the latest point releases in
preparing for the upcoming v0.16.0 release.

Also switch the go download URL to the new go.dev domain.

Also update LANGUAGES.md accordingly, and mark that we support THeader
in Go now (we added the support in v0.13.0, just forgot to update
LANGUAGES.md accordingly).
2022-01-11 13:44:23 -08:00
Jens Geyer
4c7b9fd38a THRIFT-5479 Add net 6 support
Client: netstd
Patch: Jens Geyer
2021-12-05 13:05:58 +01:00
Mario Emmenlauer
bdb54bc1c9 Use modern OpenSSL cmake syntax (if available), and larger cmake cleanup 2021-09-02 08:54:42 +02:00
Mario Emmenlauer
5a64c71017 Use the cmake-generated thrift config also on MSVC 2021-08-30 11:41:54 +02:00
Mario Emmenlauer
96ed727098 build/docker/*/Dockerfile: Added dotnet additional dependencies 2021-08-30 11:25:55 +02:00
Yuxuan 'fishy' Wang
a265236feb THRIFT-5447: Update supported Go versions
Client: go

Update go versions used in travis to 1.16.7 and 1.17, update
LANGUAGES.md, and update go's README to clarify on support policy.

This change will be cherry-picked into 0.15.0 branch after merged.
2021-08-19 14:09:24 -07:00
Mario Emmenlauer
464339dbb5 build/cmake/BoostMacros.cmake: Removed 'Boost_NO_BOOST_CMAKE' and minor cleanup 2021-08-13 10:14:01 +02:00
Mario Emmenlauer
654968a24b build/cmake/DefineOptions.cmake: Minor improvement in logging for 'WITH_MT' 2021-08-13 10:14:01 +02:00
Mario Emmenlauer
ffc7bb9f59 Merged AppVeyor scripts for 'install', 'build' and 'test' into one 2021-08-11 19:28:09 +02:00
Mario Emmenlauer
c371e4ad35 Separate the cmake 'build' and 'install' targets 2021-08-11 19:27:56 +02:00
Mario Emmenlauer
22bb550f49 Removed the 'shortened' profile names in favor of descriptive profile class names 2021-08-11 19:27:24 +02:00
Mario Emmenlauer
ce64880dd8 AppVeyor: larger updates in build configuration and documentation 2021-08-11 19:25:54 +02:00
Mario Emmenlauer
166786eea8 Updated MSYS2 install for current AppVeyor and upstream MSYS2 2021-08-11 19:25:54 +02:00