Commit graph

2429 commits

Author SHA1 Message Date
Patrik Nordwall
7b763c815e
Merge pull request #26621 from akka/noGenJavadocForScaladoc
Disable genjavadoc during scaladoc compilation #26617
2019-03-27 16:34:44 +01:00
Arnout Engelen
e65f403a43
Disable genjavadoc during scaladoc compilation #26617 2019-03-27 13:48:40 +01:00
Arnout Engelen
9c52e57204
Enable strict scalac options for akka-protobuf
Unfortunately it still produces a Java warning, but I see no safe way around
that (so we can't just add `-Werror` to javacOptions)
2019-03-26 16:19:26 +01:00
Patrik Nordwall
646e68416d
Merge pull request #26568 from akka/updateScalaTest
Update scalatest to 3.0.7
2019-03-26 15:09:23 +01:00
Arnout Engelen
d390fcf183 Introduce warning silencer plugin (#26588)
So now we can compile akka-distributed-data with
-Xfatal-warnings - though I'm not yet sure about
enabling the (other) undisciplineScalacOptions

* Fix multi-node silencing
* Fix scaladoc warnings
* Introduce annotation to declare ccompat use
* Add explicit toString
* Fix deprecation on 2.13
* Move 'immutable' ccompat helpers to shared ccompat package
* Add MiMa for internal scala 2.13 compatibility class
* Internal API markers
* Fix scaladoc generation
Got bitten by https://github.com/scala/bug/issues/11021
2019-03-26 14:41:29 +01:00
Enno Runne
c755177396 Docs: latest Akka Paradox template 2019-03-26 12:09:23 +01:00
Johan Andrén
1a90f22fb4 Fix of the new javadoc search functionality (#26604)
Search target for classes would contain a module path part which
was undefined. Disabled with --no-module-directories
2019-03-25 11:15:07 +01:00
Christopher Batey
886088f03b Strict compiler settings for discovery (#26552) 2019-03-20 09:12:40 +01:00
Arnout Engelen
0139058610
Update genjavadoc
This should produce Java code that is valid enough to be processed even in the
presence of -Yrangepos #23756
2019-03-19 15:16:59 +01:00
Arnout Engelen
b214115051
Update scalatest 2019-03-19 11:25:48 +01:00
Arnout Engelen
97d7eadb6f
Explicitly require jdk9+ for javadoc generation (#26515)
Refs #26502
2019-03-19 11:00:55 +01:00
Arnout Engelen
d7f12d3568 akka-distributed-data compiler warnings #26088 2019-03-19 08:12:51 +01:00
Arnout Engelen
6f66981542
Include 'reproducible builds' sbt plugin (#26546)
This does 2 things:
* publish a 'buildinfo' report along with the project artifacts to describe
the build context and parameters
* post-process the jars to remove 'arbitrary' differences, such as jar file
ordering and timestamps.

This makes it easier to detect and explain when 2 builds of the same source
don't produce a bit-per-bit identical result. This for example can improve
our confidence that our distribution pipeline has not been compromised.
2019-03-18 17:12:21 +01:00
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