Commit graph

2416 commits

Author SHA1 Message Date
Patrik Nordwall
38b8c08640
Merge pull request #26506 from akka/expectJdk11forRelease
Expect java11 for releasing
2019-03-15 10:05:20 +01:00
Enno
a181c758c1 Paradox: latest 0.5.3, latest theme 0.16, more https (#26522) 2019-03-14 08:26:15 +01:00
Arnout Engelen
9d63d353d5
Expect java11 for releasing
Refs #26278
2019-03-12 15:50:54 +01:00
Christopher Batey
2e247001f7 Validate compile in multi-jvm (#26400)
* New validateCompile task for multi jvm to run in travis
2019-03-12 12:43:02 +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
Christopher Batey
f2708c9dd3
Remove outdated comment from build.properties (#26475) 2019-03-06 15:15:46 +00: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
Helena Edelson
3070a84d64
Add html reports for Scoverage (#26444) 2019-02-26 11:54:03 -08:00
Arnout Engelen
c3806c9135
Merge pull request #26380 from chbatey/fix-release-script
Fix excludes for docs publish in release script
2019-02-26 12:30:14 +01:00
Helena Edelson
3f12d35694
Add more code discipline to the build #26376
* Initial addition of adding more code discipline to the build #26206
* Add Scoverage to the build #25075, jenkins nightly job is set up.

Following up with https://github.com/akka/akka/issues/26389
2019-02-25 10:23:36 -08:00
Patrik Nordwall
cd52f05d3c release flag 11 instead of 9, #26381
Otherwise there are compilation errors for the
CompileJdk9 sources in some environments
2019-02-21 16:46:29 +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
Seth Tisue
fc23f03031 upgrade to latest ScalaTest (#26387)
stuff moved to a new package. you wouldn't expect that in a point
release, but they put type aliases in place so Scala users wouldn't
notice. but the change is visible to Java code.

the upgrade is not strictly necessary, but it would be convenient
for the Scala 2.13 community build to have this merged, so I don't
have to maintain these changes in our Akka fork
2019-02-17 19:45:39 +00:00
Christopher Batey
83e4278211 Fix excludes for docs publish in release script
They should be relative to the from path so this was rsyncing the
docs twice, once via SBT and once when doing the api docs
2019-02-14 11:29:38 +00:00
Christopher Batey
08870e61af Update mima version to 2.5.21 2019-02-13 13:53:30 +00:00
Johannes Rudolph
3f929427ef build: detect adoptopenjdk java homes (#26337)
The Ubuntu PPA for adoptopenjdk does not strictly follow the Ubuntu Java
naming correctly which can fail the akka build if no other JDK is installed.

rpardini/adoptopenjdk-deb-installer
2019-02-07 13:39:41 +01:00
Christopher Batey
ccdeef9075 Upgrade Aeron to 1.15.1 (#26268) 2019-02-06 16:48:25 +01:00
Patrik Nordwall
84bab0fbca
Merge pull request #26304 from johanandren/wip-post-2.5.20-changes
Updated the latest patch for mima
2019-01-31 15:51:58 +01:00
Johan Andrén
d52ceddb25 Review feedback addressed 2019-01-30 05:12:07 +01:00
Johan Andrén
d7e107090d Updated the latest patch for mima 2019-01-29 16:31:54 +01:00
Johan Andrén
6123b7548d Stab 2019-01-29 15:39:54 +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
Johannes Rudolph
f44b777e76
build: make sure ignore files are searched for in base directory
Previously, the paths were just relative paths and depended on the working
directory of the sbt process. However, that's unreliable when the akka
sources are included in another build as in the akka-http nightlies.
2019-01-16 11:44:07 +01:00
kerr
75cb436ce7 Update headers for jdk9 related code. (#26236) 2019-01-15 13:35:53 +01:00
kerr
36ade9685c Silence the sbt-scalafix and sbt-java-formatter's file ignoring #26243 2019-01-15 13:05:11 +01:00
James Roper
ab82924a84 Switched to new sbt pr validator plugin (#25264)
* Switched to new sbt PR validator plugin
* Moved root setting of additionalTasks to global scope
* Upgraded to version 1.0 of pull request validator
2019-01-14 17:23:27 -08:00
hepin1989
27500001ea Add sbt-java-formatter for java code formatting. 2019-01-12 01:41:54 +08: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
Arnout Engelen
0cc8e20a2e
Various scala-2.13.0-M5 fixes
Clearer imports in TcpDnsClient

Accept SVG's when checking if diagrams were generated

Fix akka-actor MiMa issues

akka-testkit scalafix changes

Update scalatest to 2.13-released snapshot

akka-stream scalafix changes

Update ssl-config

To version that's released with -M5

Take elements directly out of buffer

Manually fix immutable.Seq / Doc link

Make sure the right Concat, Sink is imported

akka-stream binary compat

akka-stream-testkit scalafix

akka-actor-tests scalafix

Eta-expensions
2019-01-11 11:44:35 +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
Arnout Engelen
4c7440c952
akka-actor scalafix changes 2019-01-11 11:43:26 +01:00
Arnout Engelen
6cca1a0ee3
Don't be too clever with the copyright year (#26169) 2019-01-02 16:21:01 +01:00
kerr
bdc90052aa Update headers from 2018 to 2019 once for all. (#26165)
* Add CopyrightHeader support for sbt-boilerplate plugin.
* Add CopyrightHeader support for `*.proto` files.
* Add regex match for both `–` and `-` for CopyrightHeader.
* Add CopyrightHeader support for sbt build files.
* Update copyright from 2018 to 2019.
2019-01-02 11:55:26 +01:00
Patrik Nordwall
5621899bb6 unidoc genjavadoc doesn't work with sbt 1.2.7 yet (#26150) 2018-12-21 12:01:44 +01:00
Marcos Pereira
03e4ffb3d1
Cross run MiMa when releasing
This ensures the binary compatibility will run for all Scala 
versions that are used to do the release.
2018-12-20 17:41:53 -05:00
Renato Cavalcanti
5bcfbc556c removes warning about shadowed java.io.File (#26134) 2018-12-19 11:39:09 +01:00
Arnout Engelen
bf3bc4d6e1
Remove CallerSensitive (#26112)
Having this file at all was a workaround for a problem with building on jdk9
for jdk8, but I can no longer reproduce this problem.

See also https://github.com/akka/akka/pull/25326
2018-12-18 15:56:09 +01:00
hepin1989
41f70ea849 Add reload to fixall and fix command alias. 2018-12-17 21:10:11 +08:00
hepin1989
746d0adb45 Setup different fix alias on different sub projects and add support to ignore dedicated packages when do scalafix.
Because some sub projects does not enable the MultiNode plugin.

Add ignore packages support for scalafix.
2018-12-17 21:10:11 +08:00
Christopher Batey
58df72330d update mima latet version for 2.5.19 2018-12-07 16:13:11 +00:00
Patrik Nordwall
918843d54e
Merge pull request #26050 from akka/wip-25985-unidoc-patriknw
only unidoc for Scala 2.12, #25985
2018-12-06 15:38:11 +01:00
Patrik Nordwall
7bce22f2ea revert to sbt 1.2.6, because unidoc issue
* the update to sbt 1.2.7 in commit 6ba4c341f5
  broke unidoc (javadoc)
2018-12-06 12:48:08 +01:00
Patrik Nordwall
4742a23e9e only unidoc for Scala 2.12, #25985
* otherwise the docs built with 2.11 will be published for release,
  since the 2.11 build is last
2018-12-06 12:48:01 +01:00
Christopher Batey
c5c2f951db Dns discovery custom resolver (#25937)
* Import service discovery from akka-management

* Rename extension to Discovery to go with akka-discovery name
* Rename interafce to ServiceDisovery
* Import config, aggregate and dns
* Discovery documentation
* Load isolated async-dns if not configured as default
* OSGi for discovery
* Remove warning for not using in production
* Fail if old akka management on classpath
* Only allow async dns to be loaded as an additional resolver
* Use method in all of service discovery, not mechanism
* Mima filter
* Add discovery to aggregate
* Set discovery mima versions
* DnsDiscoverySpec: Only run docker test if docker available
2018-12-05 14:01:24 +01:00
kerr
e9fb3a020a Make use of scalafix to remove unused import. (#26019)
* =build Add scalafix to remote unused import.

* +build Add file ignore plugin for scalafix which support ignore files.
2018-12-05 08:30:21 +00:00
kerr
895cd70b86 Upgrade Scala version to 2.12.8. (#26039) 2018-12-04 15:50:38 +00:00
Johannes Rudolph
c462ecb60f Simple JDK 11 fixes (#26038)
* TLSSpec fix for Java 11 #25739

* =act silence logging in AsyncDns specs

* +act Add internal akka.util.JavaVersion for determining runtime Java version

* =act #25733 run TcpIntegrationSpec peers on different ActorSystems

* pro: add explicit dependency to activation when using dockerClient for JDK 11+

Otherwise, the log is spammed with lots of ClassNotFound exceptions when
running AsyncDnsResolverIntegrationSpec
2018-12-04 15:26:47 +01:00
kerr
6ba4c341f5 update sbt and sbt plugins (#26017)
* =build update sbt to 1.2.7.

* =build update sbt plugins.
2018-12-03 15:14:27 +00:00