300 Commits

Author SHA1 Message Date
Joshua Fernandes
29c3c14263 New release docker image (#1664)
* removing unused docker image, switching to new docker image

* switch to using the new release image and pipeline

* pr fixes

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-07-11 14:44:37 +10:00
Adrian Sutton
b4ee866cf6 Sanity check the generated distribution files before upload. (#1648)
Also sanity check as part of build so we know if the checks start failing prior to the actual release.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-07-05 15:21:09 +10:00
Joshua Fernandes
3f878e05c4 remove the docker gradle plugin, handle building docker with shell now (#1644)
* remove the docker gradle plugin, handle with shell now



Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-07-05 08:35:52 +10:00
Adrian Sutton
6429311086 Upload jars to bintray as part of releases (#1608)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-07-01 08:29:07 +10:00
Adrian Sutton
81692627ac Move docker-pantheon dir out of distributions so it doesn't get published to bintray during a release. (#1606)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-06-26 14:03:47 +10:00
Joshua Fernandes
491012159a cleaning up the build process for docker (#1590)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-06-21 19:14:10 +10:00
Jason Frame
e135630d60 Update dependency versions (#1592)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-06-21 10:58:55 +10:00
Danno Ferrin
4b23b38ae7 Dependency Version Updates (#1517)
Release plugin 2.8.0 fails on JDK-12 and Zulu in docker containers.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-06-01 17:50:29 -06:00
Danno Ferrin
16c64e64f0 Use external pantheon-plugin-api library (#1505)
* Use the external jars to provide the plugin libraries.
* Add mavenLocal to local repositories to aid development
* Remove the :plugins project
* Move the PantheonPluginContextImpl into :pantheon
* rename a few files
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-05-29 10:12:50 -06:00
Danno Ferrin
72cbac8eee Version updates (#1503)
* Most libraries with newer stable versions were upgraded to their
  newest stable version
* One exception is RocksDB, where a previous update caused a performance
  regression.  the 6.0.1 update will be tested in another PR
* GraphQL got stingier about null variable maps, so empty maps were passed instead
* errorprone plugin got stricter with it's variable access
* There was a license that was slightly different, creating 2 MIT licenses in the license report.
* Gradle wanted a new almost identical wrapper jar.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-05-28 10:00:03 -06:00
Danno Ferrin
3ec2764925 Limit spotless checks to java classes in expected java dirs (#1490)
Sometimes build generated classes (like JMH) get caught up in IntelliJ's build dirs and the formatter doesn't like that. Change the spotless filter to only examine files in their expected dirs.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-05-23 19:17:25 -06:00
Danno Ferrin
8b7c5f7949 Plugin Framework (#1435)
Provide a mechanism for Pantheon to integrate plugin code at runtime.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-05-17 10:46:23 -06:00
Danno Ferrin
a46073e833 PIE-1505 - Build broken in Java 12 (#1263)
There is one check that has issues in Java 12 and has yet to be fixed.
Disable it when we detect we are being built on Java 12.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-04-11 13:05:17 -06:00
Danno Ferrin
fbb731a8fe Errorprone 2.3.3 upgrades (#1110)
Biggest change is that UnusedVariable and UnusedMethod went to WARN by
default. Since our build is a no warning build this means we either need
to turn them off or fix them.  I mostly opted for the latter.  Test code
was mostly fixed, unused loggers were deleted, and other shipped code
was mostly suppressed.

Two less noisy fixes to not use `SortedSet` and to use zero based
comparable results instead of -1, 0, and 1.  Also a compiler nit in
errorprone was suppressed, per the description it won't affect us.

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-03-19 09:17:41 -06:00
Danno Ferrin
da4d484685 Regular Version Upgrades (#1100)
version upgrades, except for
* ErrorProne (requires more than number changes, separate PR)
* net.research.release (known build breaks)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-03-15 12:29:23 -06:00
Danno Ferrin
0cbec8dbb1 [minor] include reference tests in jacoco (#1024)
As previously configured reference tests were not included in jacaoco
results, implying vast swaths of the EVM were not tested.  By adding
jacoco to the reference tests and including them in the report a more
accurate picture of line level testing results.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-03-02 14:35:39 -07:00
Guillaume Lethuillier
330e085096 Fix 'the Input Is Too Long' Error on Windows (#843)
Fix for the _“The input line is too long”_ error on Windows.

This fix makes Gradle generate a shortened but operational command in `pantheon.bat`.

The modified `pantheon.bat`, instead of explicitly referencing each .jar individually when initializing the classpath, uses the wildcard character `*` instead.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-02-19 09:41:35 -07:00
Danno Ferrin
aaeaa59f31 Upgrade GoogleJavaFormat to 1.7 (#795)
Two changes:
* Stream chains now take up less vertical lines, only breaking on
  stream operations.
* Long annotations that span multiple lines no longer have a dangling
  parentesis and indent 4 spaces.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-02-06 20:50:56 -07:00
Danno Ferrin
9f04072c43 Build stability (#715)
* make spotless groovy formatter ignore compilation errors
* move errorprone FieldCanBeFinal to off for performance reasons.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-01-30 14:55:24 -07:00
Danno Ferrin
8133e40a73 Build tweaks (#628)
JDK smoke tester says corretto didn't like the 2.8.0 version, so roll it back.

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-01-22 15:30:40 -07:00
Ivaylo Kirilov
14a67e8b82 [PRIV] Prepare private transaction support (#538)
* Add Orion module

* Add integration tests

* Use ephemeral instance of Orion for integration test

- Start orion on random port
- test payloads can be send and received

* update build image

* Use snapshot build of orion

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-01-22 21:15:49 +10:00
Danno Ferrin
fea9168ef4 version upgrades (#571)
Skipped spotless plugin (known issues with build stablity)

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-01-16 11:07:56 -07:00
Danno Ferrin
d1a59a05e9 Gradle 5.1.1 (#512)
* Gradle 5.1.1

Artemis went to Gradle 5.1 and it seems to be doing fine.
This upgrades to Gradle 5.1.1 and removes the two deprecation warnings in the build script.

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2019-01-11 08:07:57 -07:00
Danno Ferrin
b6e53208ec Make Pantheon behave as a submodule (#419)
* version sniffing should be submodule aware

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-12-13 19:39:36 -07:00
Danno Ferrin
e73b339070 Update errorprone (#401)
* Upgrade errorprone

* Upgrade errorprone from 2.3.1 to 2.3.2
* Upgrade Jenkinsfile so that CI will use Java 11
* Suppress these new rules:
  * EqualsGetClass
  * ImmutableEnumChecker
  * UnnecessaryParentheses
* Change code to conform to these new rules:
  * BadImport
  * BadInstanceof
  * InconsistentHashCode
  * LockNotBeforeTry
  * MathAbsoluteRandom
  * ModifiedButNotUsed
  * UndefinedEquals

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-12-12 10:16:36 -07:00
Danno Ferrin
94c68dd979 Changes to support Gradle 5.0 (#371)
* Explicitly declare some dependencies for the acceptance tests
** rxjava2
** Java-WebSocket
** web3j:abi and web3j:crypto
* Change annotation processor path declaration
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-12-06 14:02:31 -07:00
Chris Mckay
4f0de5e164 Downgrading spotless to 3.13.0 to fix threading issues (#325)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-11-29 07:33:34 +10:00
Danno Ferrin
d4fff610c6 Dependencies Version upgrade (#303)
Upgrade dependency versions

* All version information is merged into one place
* Upgrade most version to their latest non-test version.
* dependencies are now sorted

Two dependencies were not upgraded:

errorprone - There are new checks that require build or source changes.
vertex - The license to eclipse 2.0 which is not in our current approved license list. 
    The change is trivial but for tracability it should be done alone.

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-11-26 08:33:40 -07:00
CJ Hare
7747e49d06 Smart contract acceptance test (#296)
* Upgrade Web3j to 3.6.0

* Correcting ErrorProne exclusion regex

* Deploying the simple storage contract

* Web3j to 4.0.1

* Verifying the transaction receipt

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-11-23 11:19:57 +10:00
Danno Ferrin
0716e6044b Update Client Version to be ethstats friendly (#258)
Update value returned by web3_clientVersion to be ethstats friendly

* Version part starts with a v
* SNAPSHOT builds report 32 bits of the git hash
* OS and architecture are sniffed out and reported
* JVM version and branding are sniffed out and reported

Example values (not all real):
pantheon/v0.9.0-dev-f800a0b1/osx-x86_64/oracle-java-1.8
pantheon/v0.9.0-dev-27960b57/osx-x86_64/zulu-java-11
pantheon/v0.9.0/linux-arm64/openjdk-java-12
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-11-14 08:08:45 -07:00
Matt Gucci
8380254edd Set Java compiler default encoding to UTF-8 (#238)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-11-04 09:10:57 +01:00
Chris Mckay
4561af49d0 Minor/javadoc warnings as errors (#171)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-30 10:05:19 +10:00
Chris Mckay
3b57c8913e Use local nexus mirror when running on jenkins
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-30 09:52:10 +10:00
CJ Hare
94ca21e2da Adding the docs html to the distribution (#156)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-26 08:39:39 +10:00
CJ Hare
39ef45e967 Removing unused plugin dependency (#139)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-25 12:25:38 +10:00
Chris Mckay
005bf5037b [MINOR] delayed submodule check until submodule used
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-25 08:01:02 +10:00
CJ Hare
c36923a46e Adding the getting started to the binary distributions (#136)
* Adding the getting started to the binary distributions

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-24 16:47:25 +10:00
CJ Hare
1f2c05314b [NC-1628] Release Jenkins Jobs (#126)
Supporting / scripting for creating a branch from a tag
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-24 13:37:51 +10:00
CJ Hare
3639093365 Uploading to Bintray as part of the release (#105)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-19 13:00:56 +10:00
mark-terry
cb01231ac0 [NC-862] License headers applied to non-java files (#93)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-19 07:26:11 +10:00
mark-terry
310bd4035c Nc 862 spotless license headers (#69)
* [NC-862] Added licenseHeader java rule to spotless.

* [NC-862] Spotless java headers applied.

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-17 12:54:46 +10:00
Lucas Saldanha
d0416e95f8 Removing evmtool gradle project (#67)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-16 17:30:59 +13:00
Lucas Saldanha
160b74b1d6 Removing evm from distribution packages (#64)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-16 14:38:35 +13:00
CJ Hare
3c4914d91c Release pipeline (#45)
* Release plugin and rework of the Bintray plugin in Gradle, in-code ignoring tests that were being ignored at runtime on the CI.


Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-12 16:54:29 +10:00
Christopher Mckay
cf66277a57 changed all the imports to tech.pegasys packaging
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-12 15:48:20 +11:00
Jason Frame
7870407ef4 [NC-1374] Use default java secureRandom (#34)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-11 14:51:54 +10:00
Lucas Saldanha
bc653d8467 NC-1498: Add license report to distribution packages (#17)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-10 21:43:54 +13:00
Danno Ferrin
02eb60fa47 NC-1645 JMH benchmarks broken (#13)
Remove the errorprone configuration.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-09 22:16:18 -06:00
Chris Mckay
75ce3a4f02 [MINOR] removing executable from files (#14)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-10 14:22:54 +11:00
PegaSys Admin
7dfc2e4085 Initial commit
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2018-10-09 15:17:20 +00:00