Commit graph

741 commits

Author SHA1 Message Date
Arnout Engelen
5fafdced8e
Cleanup cross building (#30981)
* wip

* Don't set crossScalaVersions at the toplevel

* scalafmtSbt

* Accidentally commited

* Set default scalaVersion

* Set top-level scala version to default

* Add comment explaining why to +~
2021-12-14 11:00:02 +01:00
Patrik Nordwall
5d381cdc74
Propagate aeron system properties to forked jvm, #30601 (#30894) 2021-11-16 15:33:13 +01:00
Arnout Engelen
cdad7938b0
Include Scala 3 in cross-build (#30392)
* Include Scala 3 in cross-build

sbt cross-building sometimes behaves surprisingly, so this does not work
yet: when switching to 3.0.1-RC1 it still tries to build the modules
that do not support that version yet, even though they are 'excluded'.

This also currently breaks cross-publishing, so we cannot merge this.
Once this works we should add a note to the documentation clarifying
that the Scala 3 artifacts are experimental.

* Fix jackson test dependency

* Don't publish docs for scala3 artifacts for now

* Publish empty doc packages for Scala 3 artifacts
2021-10-25 08:18:22 +02:00
Andrei Arlou
b468efd95b
Fix external links - fifth iteration (#30697) (#30755) 2021-10-07 10:46:54 +02:00
Arnout Engelen
a085b21fc1
build akka-cluster-tools on scala3 (#30683) 2021-09-16 09:06:34 +02:00
Marcos Pereira
b71efdea51
Fix GC logging configuration when running with Java 11
Also take the CI environment variable into consideration
2021-08-19 20:03:53 -04:00
Marcos Pereira
7cdca36ab8
Some minor build clean ups
- Resolve some warnings due to depracations
- Fix an infinite recursion
- Minor refactoring to use sys.props instead of System.getProperty
2021-08-19 20:03:07 -04:00
Arnout Engelen
999b0853d5
Run akka-stream-tests on Scala 3 (#30451)
Refs #30243

* More createGraph
* Actually delay downstream cancellation
2021-08-13 13:56:38 +02:00
Arnout Engelen
9b5aad942f
Share source directory between Scala 2.13 and Scala 3 (#30384) 2021-07-12 18:32:01 +02:00
Lukas Rytz
aa03e8b089
Update Scala to 3.0.0 final, sbt to 1.5.2 (#30248)
Also: Migrate to sbt slash syntax
2021-05-25 12:50:51 +02:00
Andrea Peruffo
da70e0ccd4
Scala 3 cross compatible akka-actor / akka-testkit / akka-actor-tests (#29956)
* Remove @switch when it doesn't take effect
* Use ActorRef.noSender
* Minor tweaks to SchedulerSpec
* Disambiguate TypedActor for Scala 3
* Bump ScalaTest to a version compatible with Scala 3
* Bump ScalaCheck
* Disambiguate Event in SupervisorHierarchySpec
* Scala 3 compatible EventBusSpec
* Prevent private unused variables to be erased by Scala 3
* Bump mockito
* Explicit actorRef2Scala import
* restore original .scalafix.conf
* Scala 3 compatible tailrec
* Reminder to re add switch annotation in case
* Move to nowarn instead of silencer
* Bump to Scala 2.12.13
* Cross compatible annotations
* fix docs generation
* adapt the build for Scala 3
* fix errors but bus
* remove more SerialVersion from trait
* scalacheck only from scalatest
* cross-compile akka-actor-tests
* restore cross-compilation
* early initializers workaround
* scalacheck switch
* cross compatible FSM.State class
* cross compatible LARS spec
* Change results to pass LineNumberSpec
* fix stackoverflow in AsyncDnsResolverIntegrationSpec
* FSM.State unapply
* fix Scala 2.13 mima
* SerialVersionRemover compiler plugin
* removed unused nowarns
2021-02-01 16:38:29 +01:00
Arnout Engelen
31f654768f
Update copyright to 2021 2021-01-08 17:55:38 +01:00
Christopher Batey
faada69ab4
javacOptions in Compile configuration (not compile task) (#29459) 2020-08-05 14:12:29 +02:00
Bùi Việt Thành
fe0447d267 ExplicitResultTypes manually for implicit local val / def
ExplicitResultTypes scalafix rule can't fix those cases
2020-04-20 17:59:50 +07:00
Johannes Rudolph
5eea9cddcf
build: remove scala-2.13+ / scala-2.13- directories for now (#28894)
For the time being, we'll probably only support 2.12 and 2.13 so these special
directories might not be needed right now.

Follow up to #28888
2020-04-07 12:25:55 +02:00
Arnout Engelen
1a529aa38a
Publish paradox/japi/api (snapshot) docs via sbt (#28828)
* Publish paradox/japi/api (snapshot) docs via sbt

* Removes the need for custom release commands

* Use ++= instead of :=
2020-03-30 16:48:15 +02:00
Arnout Engelen
04df0252cd Clean up akka.build.version #26675 (#28415)
Since sbt-dynver now takes care of this and has successfully been tested with
the play and lagom nightly builds. If you really want to override the version
anyway, you can still add a 'version.sbt' and override 'version in ThisBuild'
and 'isSnapshot in ThisBuild' manually.
2020-01-06 20:11:18 -08:00
Helena Edelson
6bf20f4117 Update all copyright headers to 2020 after new year's #27881 (#28434) 2020-01-02 13:24:59 +01:00
Arnout Engelen
3a35851fef
use sbt-dynver (#27042) 2019-12-16 14:33:17 +01:00
sullis
dbc97fb6f3 Scala 2.13.0 -> Scala 2.13.1 (#28140)
* Scala 2.13.0 -> Scala 2.13.1

* Update to genjavadoc 0.15

* Allow 'higherKinds' without explicit import

To follow the 2.13.1 convention

* Remaining higherKinds imports

* Mima excludes for missing value classes in generics
2019-11-29 13:38:19 +01:00
Christopher Batey
b52271da1c Don't include protobuf settings for all projects #28227
Only akka-actor got the protobuf files due to the assembled jar being
added to the unmanaged jars for ease of use when importing into
Intellij. Removing that from default settings seems to have fixed it.

Fixes 

* Remove protobuf Any import from doc spec
2019-11-25 14:36:09 +01:00
Arnout Engelen
a47886c4f5 sbt option to explicitly specify the jdk8 jdk to use (#28107)
* Nicer error message when jdk home path is not found
* Also allow setting it via the environment
2019-11-08 15:59:49 +01:00
eugene yokota
f3d02b3c27 Fixes intermittent "Could not create directory" issue (#28056) 2019-10-24 16:31:28 -04:00
Enno
6c2108c18e Docs: add project info boxes (#27873) 2019-10-03 16:42:41 +02:00
Arnout Engelen
978b7d2e0f Don't duplicate CrossJava logic (#27842) 2019-10-02 20:02:40 -07:00
Arnout Engelen
973d913878
Make scm section consistent with previous releases
Follow-up on #27817
2019-10-01 10:11:15 +02:00
Patrik Nordwall
24afac6629 Define ScmInfo (#27817)
* it was previously added by sbt-git, but we removed that plugin
2019-10-01 09:01:33 +02:00
James Roper
0037998bfb Use SPDX short identifier for license (#27277)
* Use SPDX short identifier for license

The SPDX license list (https://spdx.org/licenses/) defines a standard
for identifying licenses that allows tooling to unambiguously identify a
license. This changes Akka to use the SPDX short identifier for the
Apache 2 license.

Any developer wishing to publish their own build of Akka to bintray will
need to make this change, as bintray uses the SPDX short identifier to
verify that artifacts being published to free accounts are indeed open
source. So this will make it easier for people to publish their own
builds.

* Update Apache license URL

Co-Authored-By: Arnout Engelen <github@bzzt.net>
2019-07-09 12:54:32 +01:00
Arnout Engelen
af3ee37d6c
Option to target system JDK instead of JDK8 (#27083)
Inspired by the proposal by @nvollmar in 0940dfc
2019-06-17 16:55:54 +02:00
Patrik Nordwall
97b10273a6 support akka.build.version=file
* forward port from release-2.5 branch
* needed for nightly snapshots
2019-06-04 16:41:49 +02:00
Enno
c5e9b5918c
Set useful description in sbt setting (#27059) 2019-06-02 13:42:01 +02:00
Dale Wijnand
5a893fff7b Use Def.settings (#26945) 2019-05-21 18:35:42 +02:00
Patrik Nordwall
a9f4f2dd96
akka.build.version property, #26958 (#26959)
* akka.build.version property, #26958

* and use timestamped snapshot version if "timestamp" is passed in
* to support publishing snapshots with same version for Scala 2.12 and 2.13
  with +publish
* remove stampVersion plugin, since it's no longer needed

* store currentDateTime in system property

* to survive reloads
2019-05-20 11:31:46 +02:00
Christopher Batey
efc3adc08d
Make artery the default remoting (#26772) 2019-05-01 08:12:09 +01:00
Christopher Batey
39b344c508 Remove actor dsl (#26784)
* Removals of actor dsl
* Mima for actor dsl removal
* Remove inbox doc test
* Keep main in echo server example
2019-04-25 15:53:27 +02:00
Arnout Engelen
8394f7c33d Update MiMa: drop 2.4, add 2.5 (#26765)
* Update MiMa: drop 2.4, add 2.5

We promise binary compatibility across minor versions, which would in theory
mean we should check compatibility between 2.4 and 2.6.

However, since 2.4 is EOL, we no longer guarantee bincompat with it. In
practice this should not make much of a difference, since only in rare cases
would a change be binary compatible with 2.5 but not with 2.4.

* Don't run 2.11 on travis
2019-04-19 07:54:25 +01:00
Christopher Batey
0ab7a96ae2
Remove Scala 2.11 for Akka 2.6 (#26760)
* Remove Scala 2.11 for Akka 2.6

* Remove unused import

* Update akka-actor/src/main/scala-2.13/akka/compat/Future.scala

Co-Authored-By: chbatey <christopher.batey@gmail.com>

* Update akka-actor/src/main/scala-2.13/akka/compat/Future.scala

Co-Authored-By: chbatey <christopher.batey@gmail.com>

* Remove last few bits of 2.11
2019-04-19 07:53:27 +01:00
Helena Edelson
5576c233d0 Clean up Java version related build properties #26662 2019-04-16 09:10:42 +02:00
eugene yokota
1a2cf3d4c6 Allow build to run on JDK 8 (#26642)
Ref #26233

Currently Akka fails to build on sbt community build, which runs on JDK 8. Likely it will fail on Scala community build as well due to `--ignore-source-errors`.
This makes the flag conditional based on the running JDK.

It will be useful for Scala toolchain to be able to validate its latest using latest Akka if possible.
2019-04-03 15:28:55 +02:00
Patrik Nordwall
b5b592c8f9
Remove Scala 2.11 from crossScalaVersions (#26656)
* Remove Scala 2.11 from crossScalaVersions

* because +buildRelease doesn't work with mixed crossScalaVersions
* let's use akka.build.scalaVersion when building for 2.11
* aggregatedProjects adjusted depending on akka.build.scalaVersion is 2.11 or not,
  there excluding/including the -typed modules

* update travis to use akka.build.scalaVersion
2019-04-02 15:16:01 +02:00
Christopher Batey
65ccada280 Lease API + use in cluster singleton and sharding, #26480 (#26629)
* lease api
* Cluster singleton manager with lease
* Refactor OldestData to use option for actor reference
* Sharding with lease
* Docs for singleton and sharding lease + config for sharding lease
* Have ddata shard wait until lease is acquired before getting state
2019-03-28 13:31:56 +01:00
Enno
a181c758c1 Paradox: latest 0.5.3, latest theme 0.16, more https (#26522) 2019-03-14 08:26:15 +01:00
Patrik Nordwall
5c96a5f556 replace unicode arrows
* ⇒, →, ←
* because we don't want to show them in documentation snippets and
  then it's complicated to avoid that when snippets are
  located in src/test/scala in individual modules
* dont replace object `→` in FSM.scala and PersistentFSM.scala
2019-03-11 16:58:51 +01:00
Patrik Nordwall
e4d38f92a4 Switch to Scalafmt in build
* AvoidInfix in scalafmt.conf

* align.tokens in scalafmt.conf

* scalafmt in MultiJvm

* sbt-scalafmt 2.0.0-RC5

* scalafmt in all* command alias

* scalafmtAll in CONTRIBUTING.md
2019-03-11 16:56:39 +01:00
Johan Andrén
26b0869318
(Prefer) non symbolic typed ask 26306 2019-03-01 15:06:50 +01:00
Arnout Engelen
8853175111 Don't apply 'discipline' flags to compilation run for documentation #26119
* Avoid -Ywarn-unused:_ on Scala 2.13
* Exclude warn-unused:explicits when generating docs
* Don't apply discipline to the docs compilation run

This approach also means no explicit code is needed anymore to
prevent #26119 from being triggered.
2019-03-01 13:39:08 +01:00
Johan Andrén
a8291f323f Typed only on Scala 2.12
* Typed modules not compiled on 2.11
* Dependent modules also not on 2.11:
  * docs
  * akka-bench-jmh split into a separate one for typed

Still doesn't work because something with sbt
2019-02-21 15:47:09 +01:00
Arnout Engelen
a7e0a5a645 Update to sbt 1.2.8 (adding --ignore-source-errors for javadoc) (#26233)
* Update to 1.2.8 and add --ignore-source-errors for javadoc

`--ignore-source-errors` makes 'sbt -Dakka.genjavadoc.enabled=true clean unidoc'
at least output something to target/javaunidoc, though AFAICS it is not
complete (missing index, CSS etc)

* Skip javadoc for scaladsl/GraphDSL.java

As problematic javadoc seems to be generated for
akka.stream.scaladsl.GraphDSL.Implicits.ReversePortsOps

* Enable frames again
2019-01-28 08:04:09 +01:00
Arnout Engelen
d274e039f9
Various scala-2.13.0-M5 fixes
fix akka-actor-tests compile errors

some tests still fail though

Fix test failures in akka-actor-test

Manually work arround missing implicit Factory[Nothing, Seq[Nothing]]

see https://github.com/scala/scala-collection-compat/issues/137

akka-remote scalafix changes

Fix shutdownAll compile error

test:akka-remote scalafix changes

akka-multi-node-testkit scalafix

Fix akka-remote-tests multi-jvm compile errors

akka-stream-tests/test:scalafix

Fix test:akka-stream-tests

Crude implementation of ByteString.map

scalafix akka-actor-typed, akka-actor-typed-tests

akka-actor-typed-tests compile and succeed

scalafix akka-camel

scalafix akka-cluster

akka-cluster compile & test

scalafix akka-cluster-metrics

Fix akka-cluster-metrics

scalafix akka-cluster-tools

akka-cluster-tools compile and test

scalafix akka-distributed-data

akka-distributed-data fixes

scalafix akka-persistence

scalafix akka-cluster-sharding

fix akka-cluster-sharding

scalafix akka-contrib

Fix akka-cluster-sharding-typed test

scalafix akka-docs

Use scala-stm 0.9 (released for M5)

akka-docs

Remove dependency on collections-compat

Cherry-pick the relevant constructs to our own
private utils

Shorten 'scala.collections.immutable' by importing it

Duplicate 'immutable' imports

Use 'foreach' on futures

Replace MapLike with regular Map

Internal API markers

Simplify ccompat by moving PackageShared into object

Since we don't currently need to differentiate between 2.11 and

Avoid relying on 'union' (and ++) being left-biased

Fix akka-actor/doc by removing -Ywarn-unused

Make more things more private

Copyright headers

Use 'unsorted' to go from SortedSet to Set

Duplicate import

Use onComplete rather than failed.foreach

Clarify why we partly duplicate scala-collection-compat
2019-01-11 12:27:18 +01:00
Guillaume Massé
fcde44f424
Split ByteString for 2.13 and 2.12
see https://github.com/scala/bug/issues/10973 for indexWhere/indexOf
2019-01-11 11:43:29 +01:00