This is an automated email from the ASF dual-hosted git repository. toulmean pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-tuweni.git
commit b1af28751874b19cbe96add8cf9027cc0ef36695 Author: Antoine Toulme <[email protected]> AuthorDate: Fri May 3 09:47:07 2019 -0700 Add copyright headers when missing. Fix a bit of doc. Add .rat-excludes --- .gitignore | 2 ++ .rat-excludes | 19 +++++++++++++++++++ CONTRIBUTING.md | 19 ++++++++++++++++--- PACKAGES.md | 13 +++++++++++++ README.md | 13 +++++++++++++ RELEASE.md | 15 ++++++++++++++- build.gradle | 12 ++++++++++++ bytes/build.gradle | 12 ++++++++++++ .../java/org/apache/tuweni/bytes/package-info.java | 11 +++++++++++ concurrent-coroutines/build.gradle | 12 ++++++++++++ concurrent/build.gradle | 12 ++++++++++++ .../org/apache/tuweni/concurrent/package-info.java | 11 +++++++++++ config/build.gradle | 12 ++++++++++++ .../java/org/apache/tuweni/config/package-info.java | 11 +++++++++++ crypto/build.gradle | 12 ++++++++++++ .../apache/tuweni/crypto/mikuli/package-info.java | 11 +++++++++++ .../java/org/apache/tuweni/crypto/package-info.java | 11 +++++++++++ .../apache/tuweni/crypto/sodium/package-info.java | 11 +++++++++++ .../test/java/org/apache/tuweni/crypto/HashTest.java | 9 +++++++++ dependency-versions.gradle | 12 ++++++++++++ devp2p/build.gradle | 12 ++++++++++++ .../main/kotlin/org/apache/tuweni/devp2p/Endpoint.kt | 4 ++-- dist/build.gradle | 12 ++++++++++++ eth-reference-tests/build.gradle | 12 ++++++++++++ eth-repository/build.gradle | 12 ++++++++++++ eth/build.gradle | 12 ++++++++++++ .../java/org/apache/tuweni/eth/package-info.java | 11 +++++++++++ gradle.properties | 11 +++++++++++ gradle/check-licenses.gradle | 12 ++++++++++++ gradle/eclipse-java-consensys-style.xml | 12 ++++++++++++ gradle/greclipse-gradle-consensys-style.properties | 13 ++++++++++++- gradle/wrapper/gradle-wrapper.properties | 11 +++++++++++ io/build.gradle | 12 ++++++++++++ .../java/org/apache/tuweni/io/file/package-info.java | 11 +++++++++++ .../main/java/org/apache/tuweni/io/package-info.java | 11 +++++++++++ junit/build.gradle | 12 ++++++++++++ .../java/org/apache/tuweni/junit/package-info.java | 11 +++++++++++ kademlia/build.gradle | 12 ++++++++++++ kv/build.gradle | 12 ++++++++++++ .../main/java/org/apache/tuweni/kv/package-info.java | 11 +++++++++++ les/build.gradle | 12 ++++++++++++ merkle-trie/build.gradle | 12 ++++++++++++ .../java/org/apache/tuweni/trie/package-info.java | 11 +++++++++++ net-coroutines/build.gradle | 12 ++++++++++++ net/build.gradle | 12 ++++++++++++ .../java/org/apache/tuweni/net/package-info.java | 11 +++++++++++ .../java/org/apache/tuweni/net/tls/package-info.java | 11 +++++++++++ plumtree/build.gradle | 12 ++++++++++++ .../org/apache/tuweni/plumtree/package-info.java | 11 +++++++++++ progpow/build.gradle | 12 ++++++++++++ .../java/org/apache/tuweni/ethash/package-info.java | 11 +++++++++++ .../java/org/apache/tuweni/progpow/package-info.java | 11 +++++++++++ rlp/build.gradle | 12 ++++++++++++ .../java/org/apache/tuweni/rlp/package-info.java | 11 +++++++++++ rlpx/build.gradle | 12 ++++++++++++ .../java/org/apache/tuweni/rlpx/package-info.java | 11 +++++++++++ .../org/apache/tuweni/rlpx/vertx/package-info.java | 11 +++++++++++ .../org/apache/tuweni/rlpx/wire/package-info.java | 11 +++++++++++ scuttlebutt-discovery/build.gradle | 12 ++++++++++++ .../tuweni/scuttlebutt/discovery/package-info.java | 11 +++++++++++ scuttlebutt-handshake/build.gradle | 12 ++++++++++++ .../tuweni/scuttlebutt/handshake/package-info.java | 11 +++++++++++ .../scuttlebutt/handshake/vertx/package-info.java | 20 +++++++++++++++----- scuttlebutt-rpc/build.gradle | 12 ++++++++++++ scuttlebutt/build.gradle | 12 ++++++++++++ .../org/apache/tuweni/scuttlebutt/package-info.java | 11 +++++++++++ settings.gradle | 12 ++++++++++++ ssz/build.gradle | 12 ++++++++++++ .../java/org/apache/tuweni/ssz/package-info.java | 11 +++++++++++ toml/README.md | 15 +++++++++++++-- toml/build.gradle | 12 ++++++++++++ .../org/apache/tuweni/toml/internal/TomlLexer.g4 | 13 +++++++++++++ .../org/apache/tuweni/toml/internal/TomlParser.g4 | 12 ++++++++++++ .../java/org/apache/tuweni/toml/package-info.java | 11 +++++++++++ units/build.gradle | 12 ++++++++++++ .../apache/tuweni/units/bigints/package-info.java | 11 +++++++++++ .../apache/tuweni/units/ethereum/package-info.java | 11 +++++++++++ .../java/org/apache/tuweni/units/package-info.java | 11 +++++++++++ 78 files changed, 902 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index 957d9b3..485e510 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +.DS_Store +.rat-out *.bak *.swp *.tmp diff --git a/.rat-excludes b/.rat-excludes new file mode 100644 index 0000000..d130894 --- /dev/null +++ b/.rat-excludes @@ -0,0 +1,19 @@ +.*\.asc +\w+/out/.* +eth-reference-tests +build +\..* +gradlew.bat +gradlew +toml/src/test/resources/.* +.gitattributes +test1.txt +test2.txt +test3.yaml +.*\.kotlin_module +example-v0.4.0.toml +hard_example.toml +toml-v0.5.0-spec-example.toml +test.txt +resourceresolver-test.jar +gradle-wrapper.jar \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 723abef..7b1cb5c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ -# Contributing to Cava +# Contributing to Apache Tuweni -Welcome to the Cava repository! This document describes the procedure and guidelines for contributing to the Cava project. The subsequent sections encapsulate the criteria used to evaluate additions to, and modifications of, the existing codebase. +Welcome to the Apache Tuweni repository! This document describes the procedure and guidelines for contributing to the Apache Tuweni project. The subsequent sections encapsulate the criteria used to evaluate additions to, and modifications of, the existing codebase. ## Contributor Workflow @@ -26,7 +26,7 @@ commits are squashed together. #### Stylistic -The fundamental resource Cava contributors should familiarize themselves with is Oracle's [Code Conventions for the Java TM Programming Language](http://www.oracle.com/technetwork/java/codeconvtoc-136057.html), to establish a general programme on Java coding. Furthermore, all pull-requests should be formatted according to the (slightly modified) [Google Java Style Guide](https://google.github.io/styleguide/javaguide.html), as it will be checked by our continuous integration architecture, [...] +The fundamental resource Apache Tuweni contributors should familiarize themselves with is Oracle's [Code Conventions for the Java TM Programming Language](http://www.oracle.com/technetwork/java/codeconvtoc-136057.html), to establish a general programme on Java coding. Furthermore, all pull-requests should be formatted according to the (slightly modified) [Google Java Style Guide](https://google.github.io/styleguide/javaguide.html), as it will be checked by our continuous integration arch [...] #### Architectural Best Practices @@ -59,3 +59,16 @@ The code is free from glaring typos (*e.g. misspelled comments*), thinkos, or fo #### Appropriately Commented Ambiguous or unclear code segments are commented. The comments are written in complete sentences. + +# License + +Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE +file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file +to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the +License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on +an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the +specific language governing permissions and limitations under the License. \ No newline at end of file diff --git a/PACKAGES.md b/PACKAGES.md index 35365cf..724ab1c 100644 --- a/PACKAGES.md +++ b/PACKAGES.md @@ -135,3 +135,16 @@ Classes and utilities for working with 256 bit integers. # Package org.apache.tuweni.units.ethereum Classes and utilities for working with Ethereum units. + +# License + +Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE +file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file +to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the +License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on +an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the +specific language governing permissions and limitations under the License. \ No newline at end of file diff --git a/README.md b/README.md index c88ef1e..92f15e7 100644 --- a/README.md +++ b/README.md @@ -93,3 +93,16 @@ Your contributions are very welcome! Here are a few links to help you: - [Official website](https://tuweni.apache.org) - [GitHub project](https://github.com/apache/incubator-tuweni) + +# License + +Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE +file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file +to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the +License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on +an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the +specific language governing permissions and limitations under the License. \ No newline at end of file diff --git a/RELEASE.md b/RELEASE.md index 0526488..16cdc8b 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -158,4 +158,17 @@ git cherry-pick ${commitId} ### Clean up jira -If applicable mark the version as released. \ No newline at end of file +If applicable mark the version as released. + +# License + +Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE +file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file +to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the +License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on +an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the +specific language governing permissions and limitations under the License. \ No newline at end of file diff --git a/build.gradle b/build.gradle index bde4ea9..bee62bb 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ import java.util.regex.Pattern import net.ltgt.gradle.errorprone.CheckSeverity diff --git a/bytes/build.gradle b/bytes/build.gradle index aefc867..5d34045 100644 --- a/bytes/build.gradle +++ b/bytes/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ description = 'Classes and utilities for working with byte arrays.' dependencies { diff --git a/bytes/src/main/java/org/apache/tuweni/bytes/package-info.java b/bytes/src/main/java/org/apache/tuweni/bytes/package-info.java index 9044590..2954ee3 100644 --- a/bytes/src/main/java/org/apache/tuweni/bytes/package-info.java +++ b/bytes/src/main/java/org/apache/tuweni/bytes/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Classes and utilities for working with byte arrays. * * <p> diff --git a/concurrent-coroutines/build.gradle b/concurrent-coroutines/build.gradle index 6a2bc8f..7a5846f 100644 --- a/concurrent-coroutines/build.gradle +++ b/concurrent-coroutines/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ description = 'Kotlin coroutine extensions for tuweni concurrency primitives.' dependencies { diff --git a/concurrent/build.gradle b/concurrent/build.gradle index 51c7776..4b38ec8 100644 --- a/concurrent/build.gradle +++ b/concurrent/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ description = 'Classes and utilities for working with concurrency.' dependencies { diff --git a/concurrent/src/main/java/org/apache/tuweni/concurrent/package-info.java b/concurrent/src/main/java/org/apache/tuweni/concurrent/package-info.java index e91c569..6dabaae 100644 --- a/concurrent/src/main/java/org/apache/tuweni/concurrent/package-info.java +++ b/concurrent/src/main/java/org/apache/tuweni/concurrent/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Classes and utilities for working with concurrency. * * <p> diff --git a/config/build.gradle b/config/build.gradle index 6755100..06596c2 100644 --- a/config/build.gradle +++ b/config/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ description = 'Classes and utilities for working with configuration.' dependencies { diff --git a/config/src/main/java/org/apache/tuweni/config/package-info.java b/config/src/main/java/org/apache/tuweni/config/package-info.java index 73f32d3..2c87659 100644 --- a/config/src/main/java/org/apache/tuweni/config/package-info.java +++ b/config/src/main/java/org/apache/tuweni/config/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * A general-purpose library for managing configuration data. * <p> * These classes are included in the standard Tuweni distribution, or separately when using the gradle dependency diff --git a/crypto/build.gradle b/crypto/build.gradle index 4bed958..ba6d7b5 100644 --- a/crypto/build.gradle +++ b/crypto/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ description = 'Classes and utilities for working with cryptography.' javadoc { exclude '**/LibSodium*' } diff --git a/crypto/src/main/java/org/apache/tuweni/crypto/mikuli/package-info.java b/crypto/src/main/java/org/apache/tuweni/crypto/mikuli/package-info.java index c0e1bd1..f33862c 100644 --- a/crypto/src/main/java/org/apache/tuweni/crypto/mikuli/package-info.java +++ b/crypto/src/main/java/org/apache/tuweni/crypto/mikuli/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Classes and utilities for working with cryptography. * * <p> diff --git a/crypto/src/main/java/org/apache/tuweni/crypto/package-info.java b/crypto/src/main/java/org/apache/tuweni/crypto/package-info.java index 3679659..6bfe69d 100644 --- a/crypto/src/main/java/org/apache/tuweni/crypto/package-info.java +++ b/crypto/src/main/java/org/apache/tuweni/crypto/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Classes and utilities for working with cryptography. * * <p> diff --git a/crypto/src/main/java/org/apache/tuweni/crypto/sodium/package-info.java b/crypto/src/main/java/org/apache/tuweni/crypto/sodium/package-info.java index ca8224b..a9e8bdf 100644 --- a/crypto/src/main/java/org/apache/tuweni/crypto/sodium/package-info.java +++ b/crypto/src/main/java/org/apache/tuweni/crypto/sodium/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Classes and utilities for working with the sodium native library. * * <p> diff --git a/crypto/src/test/java/org/apache/tuweni/crypto/HashTest.java b/crypto/src/test/java/org/apache/tuweni/crypto/HashTest.java index 87afe6e..29e03c3 100644 --- a/crypto/src/test/java/org/apache/tuweni/crypto/HashTest.java +++ b/crypto/src/test/java/org/apache/tuweni/crypto/HashTest.java @@ -21,6 +21,8 @@ import org.apache.tuweni.junit.BouncyCastleExtension; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; +import java.nio.charset.StandardCharsets; + @ExtendWith(BouncyCastleExtension.class) class HashTest { @@ -115,4 +117,11 @@ class HashTest { byte[] resultCow2 = Hash.sha3_512("cow".getBytes(UTF_8)); assertArrayEquals(Bytes.fromHexString(cowSha3).toArray(), resultCow2); } + + @Test + void test() { + Bytes bytes = Hash.keccak256(Bytes.wrap("Osaka, Japan".getBytes(UTF_8))); + System.out.println(bytes.toHexString()); + assertEquals("0x2c064d25432e60a5300ea5db05d43a56a52f0622e79d63ca89fe61b7d1de446f", bytes.toHexString()); + } } diff --git a/dependency-versions.gradle b/dependency-versions.gradle index d7cb530..4bae852 100644 --- a/dependency-versions.gradle +++ b/dependency-versions.gradle @@ -1,3 +1,15 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ dependencyManagement { dependencies { dependency('com.fasterxml.jackson.core:jackson-databind:2.9.5') diff --git a/devp2p/build.gradle b/devp2p/build.gradle index 8f90068..b068a67 100644 --- a/devp2p/build.gradle +++ b/devp2p/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ description = 'Ethereum ÐΞVp2p implementation.' dependencies { diff --git a/devp2p/src/main/kotlin/org/apache/tuweni/devp2p/Endpoint.kt b/devp2p/src/main/kotlin/org/apache/tuweni/devp2p/Endpoint.kt index a5effb5..f144551 100644 --- a/devp2p/src/main/kotlin/org/apache/tuweni/devp2p/Endpoint.kt +++ b/devp2p/src/main/kotlin/org/apache/tuweni/devp2p/Endpoint.kt @@ -53,8 +53,8 @@ data class Endpoint( * @param tcpPort the TCP port for the endpoint or `null` if no TCP port is known * @throws IllegalArgumentException if the address isn't an IP address, or either port is out of range */ - constructor(address: String, udpPort: Int = DEFAULT_PORT, tcpPort: Int? = null) - : this(parseInetAddress(address), udpPort, tcpPort) + constructor(address: String, udpPort: Int = DEFAULT_PORT, tcpPort: Int? = null) : + this(parseInetAddress(address), udpPort, tcpPort) /** * Create a new endpoint. diff --git a/dist/build.gradle b/dist/build.gradle index ba05807..7304d37 100644 --- a/dist/build.gradle +++ b/dist/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ description = 'Tuweni distribution.' apply plugin: 'distribution' diff --git a/eth-reference-tests/build.gradle b/eth-reference-tests/build.gradle index dc96d7e..179b3cb 100644 --- a/eth-reference-tests/build.gradle +++ b/eth-reference-tests/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ jar { enabled = false } dependencies { diff --git a/eth-repository/build.gradle b/eth-repository/build.gradle index 67cac9b..64d674e 100644 --- a/eth-repository/build.gradle +++ b/eth-repository/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ description = 'Repository for managing, storing and indexing Ethereum domain objects.' dependencies { diff --git a/eth/build.gradle b/eth/build.gradle index 96f3123..b50cbf7 100644 --- a/eth/build.gradle +++ b/eth/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ description = 'Classes and utilities for working with Ethereum.' dependencies { diff --git a/eth/src/main/java/org/apache/tuweni/eth/package-info.java b/eth/src/main/java/org/apache/tuweni/eth/package-info.java index 47af392..128d428 100644 --- a/eth/src/main/java/org/apache/tuweni/eth/package-info.java +++ b/eth/src/main/java/org/apache/tuweni/eth/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Classes and utilities for working in the Ethereum domain. * * <p> diff --git a/gradle.properties b/gradle.properties index 1b96edc..8a68073 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,14 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE +# file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file +# to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on +# an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + kotlin.code.style=official asfNexusUsername=none asfNexusPassword= diff --git a/gradle/check-licenses.gradle b/gradle/check-licenses.gradle index 78e02e1..e3fd319 100644 --- a/gradle/check-licenses.gradle +++ b/gradle/check-licenses.gradle @@ -1,4 +1,16 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +/** * Check that the licenses of our 3rd parties are in our acceptedLicenses list. * * run it with "gradle checkLicenses" diff --git a/gradle/eclipse-java-consensys-style.xml b/gradle/eclipse-java-consensys-style.xml index c1c3165..b62829c 100644 --- a/gradle/eclipse-java-consensys-style.xml +++ b/gradle/eclipse-java-consensys-style.xml @@ -1,4 +1,16 @@ <?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + specific language governing permissions and limitations under the License. +--> <profiles version="13"> <profile kind="CodeFormatterProfile" name="ConsenSysStyle" version="13"> <setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags" value="insert"/> diff --git a/gradle/greclipse-gradle-consensys-style.properties b/gradle/greclipse-gradle-consensys-style.properties index 163a2e5..fe2bb2d 100644 --- a/gradle/greclipse-gradle-consensys-style.properties +++ b/gradle/greclipse-gradle-consensys-style.properties @@ -1,4 +1,15 @@ -#Whether to use 'space', 'tab' or 'mixed' (both) characters for indentation. +# Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE +# file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file +# to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on +# an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + +#Whether to use 'space', 'tab' or 'mixed' (both) characters for indentation. #The default value is 'tab'. org.eclipse.jdt.core.formatter.tabulation.char=space diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 75b8c7c..1b340d2 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,3 +1,14 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE +# file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file +# to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the +# License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on +# an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the +# specific language governing permissions and limitations under the License. + distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-bin.zip diff --git a/io/build.gradle b/io/build.gradle index 20c3737..7477238 100644 --- a/io/build.gradle +++ b/io/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ description = 'Classes and utilities for handling file and network IO.' dependencies { diff --git a/io/src/main/java/org/apache/tuweni/io/file/package-info.java b/io/src/main/java/org/apache/tuweni/io/file/package-info.java index ff6e1ae..12a6714 100644 --- a/io/src/main/java/org/apache/tuweni/io/file/package-info.java +++ b/io/src/main/java/org/apache/tuweni/io/file/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Classes and utilities for handling file IO. * * <p> diff --git a/io/src/main/java/org/apache/tuweni/io/package-info.java b/io/src/main/java/org/apache/tuweni/io/package-info.java index c93184c..0a75060 100644 --- a/io/src/main/java/org/apache/tuweni/io/package-info.java +++ b/io/src/main/java/org/apache/tuweni/io/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Classes and utilities for handling file and network IO. * * <p> diff --git a/junit/build.gradle b/junit/build.gradle index 8884247..af83cef 100644 --- a/junit/build.gradle +++ b/junit/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ description = 'Utilities for better junit testing.' dependencies { diff --git a/junit/src/main/java/org/apache/tuweni/junit/package-info.java b/junit/src/main/java/org/apache/tuweni/junit/package-info.java index c260f24..0b613f5 100644 --- a/junit/src/main/java/org/apache/tuweni/junit/package-info.java +++ b/junit/src/main/java/org/apache/tuweni/junit/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Utilities for better junit testing. * * <p> diff --git a/kademlia/build.gradle b/kademlia/build.gradle index 0d8cf0b..a5d5e78 100644 --- a/kademlia/build.gradle +++ b/kademlia/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ description = 'Distributed hash table implementations' dependencies { diff --git a/kv/build.gradle b/kv/build.gradle index 34821ca..0f20ad0 100644 --- a/kv/build.gradle +++ b/kv/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ description = 'Key value store implementations.' dependencies { diff --git a/kv/src/main/java/org/apache/tuweni/kv/package-info.java b/kv/src/main/java/org/apache/tuweni/kv/package-info.java index f0db056..ac01735 100644 --- a/kv/src/main/java/org/apache/tuweni/kv/package-info.java +++ b/kv/src/main/java/org/apache/tuweni/kv/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Classes and utilities for working with key/value stores. * * <p> diff --git a/les/build.gradle b/les/build.gradle index 1a7070d..d9c9d6c 100644 --- a/les/build.gradle +++ b/les/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ dependencies { compile project(':bytes') compile project(':concurrent') diff --git a/merkle-trie/build.gradle b/merkle-trie/build.gradle index c7ec046..91467d1 100644 --- a/merkle-trie/build.gradle +++ b/merkle-trie/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ description = 'Patricia Merkle Trie implementations.' dependencies { diff --git a/merkle-trie/src/main/java/org/apache/tuweni/trie/package-info.java b/merkle-trie/src/main/java/org/apache/tuweni/trie/package-info.java index 724502d..278e614 100644 --- a/merkle-trie/src/main/java/org/apache/tuweni/trie/package-info.java +++ b/merkle-trie/src/main/java/org/apache/tuweni/trie/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Merkle Trie implementations. * * Implementations of the Ethereum Patricia Trie, as described at <a href= diff --git a/net-coroutines/build.gradle b/net-coroutines/build.gradle index 643d867..53b9193 100644 --- a/net-coroutines/build.gradle +++ b/net-coroutines/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ description = 'Classes and utilities for coroutine based networking.' dependencies { diff --git a/net/build.gradle b/net/build.gradle index bf299dc..7a1dafb 100644 --- a/net/build.gradle +++ b/net/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ description = 'Classes and utilities for working with networking.' dependencies { diff --git a/net/src/main/java/org/apache/tuweni/net/package-info.java b/net/src/main/java/org/apache/tuweni/net/package-info.java index a57e3dc..1405cc8 100644 --- a/net/src/main/java/org/apache/tuweni/net/package-info.java +++ b/net/src/main/java/org/apache/tuweni/net/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Classes and utilities for working with networking. * * <p> diff --git a/net/src/main/java/org/apache/tuweni/net/tls/package-info.java b/net/src/main/java/org/apache/tuweni/net/tls/package-info.java index 72ec9ed..6604750 100644 --- a/net/src/main/java/org/apache/tuweni/net/tls/package-info.java +++ b/net/src/main/java/org/apache/tuweni/net/tls/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Utilities for doing fingerprint based TLS certificate checking. */ @ParametersAreNonnullByDefault diff --git a/plumtree/build.gradle b/plumtree/build.gradle index 041b8bb..dd612bb 100644 --- a/plumtree/build.gradle +++ b/plumtree/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ description = 'Plumtree - Push-Lazy-pUsh Multicast TREE, an implementation of Epidemic Broadcast Tree' dependencies { diff --git a/plumtree/src/main/java/org/apache/tuweni/plumtree/package-info.java b/plumtree/src/main/java/org/apache/tuweni/plumtree/package-info.java index cc10f0d..7b1ee9a 100644 --- a/plumtree/src/main/java/org/apache/tuweni/plumtree/package-info.java +++ b/plumtree/src/main/java/org/apache/tuweni/plumtree/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Library for Plumtree - Push-Lazy-pUsh Multicast TREE, an implementation of Epidemic Broadcast Tree * * <p> diff --git a/progpow/build.gradle b/progpow/build.gradle index cca001b..02d70a6 100644 --- a/progpow/build.gradle +++ b/progpow/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ description = 'ProgPoW - Programmatic Proof of Work' dependencies { diff --git a/progpow/src/main/java/org/apache/tuweni/ethash/package-info.java b/progpow/src/main/java/org/apache/tuweni/ethash/package-info.java index e754b70..cf49466 100644 --- a/progpow/src/main/java/org/apache/tuweni/ethash/package-info.java +++ b/progpow/src/main/java/org/apache/tuweni/ethash/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Ethereum EthHash mining utilities. * * Code derived from code written by Danno Ferrin under the Pantheon client, under ASF license. diff --git a/progpow/src/main/java/org/apache/tuweni/progpow/package-info.java b/progpow/src/main/java/org/apache/tuweni/progpow/package-info.java index ced102b..b2e012d 100644 --- a/progpow/src/main/java/org/apache/tuweni/progpow/package-info.java +++ b/progpow/src/main/java/org/apache/tuweni/progpow/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Ethereum ProgPoW mining implementation. * * Code derived from code written by Danno Ferrin under the Pantheon client, under ASF license. diff --git a/rlp/build.gradle b/rlp/build.gradle index f80414a..dd81a19 100644 --- a/rlp/build.gradle +++ b/rlp/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ description = 'Recursive Length Prefix (RLP) encoding and decoding.' dependencies { diff --git a/rlp/src/main/java/org/apache/tuweni/rlp/package-info.java b/rlp/src/main/java/org/apache/tuweni/rlp/package-info.java index 1b691e5..9b3896a 100644 --- a/rlp/src/main/java/org/apache/tuweni/rlp/package-info.java +++ b/rlp/src/main/java/org/apache/tuweni/rlp/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Recursive Length Prefix (RLP) encoding and decoding. * <p> * An implementation of the Ethereum Recursive Length Prefix (RLP) algorithm, as described at diff --git a/rlpx/build.gradle b/rlpx/build.gradle index bacd4f8..8a94dab 100644 --- a/rlpx/build.gradle +++ b/rlpx/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ dependencies { compile project(':crypto') compile project(':bytes') diff --git a/rlpx/src/main/java/org/apache/tuweni/rlpx/package-info.java b/rlpx/src/main/java/org/apache/tuweni/rlpx/package-info.java index a9f8d1f..a95dfb6 100644 --- a/rlpx/src/main/java/org/apache/tuweni/rlpx/package-info.java +++ b/rlpx/src/main/java/org/apache/tuweni/rlpx/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Classes and utilities for working with the RLPx wire protocol. * * <p> diff --git a/rlpx/src/main/java/org/apache/tuweni/rlpx/vertx/package-info.java b/rlpx/src/main/java/org/apache/tuweni/rlpx/vertx/package-info.java index d738cfd..de3ce27 100644 --- a/rlpx/src/main/java/org/apache/tuweni/rlpx/vertx/package-info.java +++ b/rlpx/src/main/java/org/apache/tuweni/rlpx/vertx/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Classes and utilities for working with the RLPx wire protocol. * * <p> diff --git a/rlpx/src/main/java/org/apache/tuweni/rlpx/wire/package-info.java b/rlpx/src/main/java/org/apache/tuweni/rlpx/wire/package-info.java index de436bb..cd42f94 100644 --- a/rlpx/src/main/java/org/apache/tuweni/rlpx/wire/package-info.java +++ b/rlpx/src/main/java/org/apache/tuweni/rlpx/wire/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Classes and utilities for working with the RLPx wire protocol. * * <p> diff --git a/scuttlebutt-discovery/build.gradle b/scuttlebutt-discovery/build.gradle index 198958b..256963a 100644 --- a/scuttlebutt-discovery/build.gradle +++ b/scuttlebutt-discovery/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ description = 'Scuttlebutt Discovery library' dependencies { diff --git a/scuttlebutt-discovery/src/main/java/org/apache/tuweni/scuttlebutt/discovery/package-info.java b/scuttlebutt-discovery/src/main/java/org/apache/tuweni/scuttlebutt/discovery/package-info.java index 1264034..8d5b846 100644 --- a/scuttlebutt-discovery/src/main/java/org/apache/tuweni/scuttlebutt/discovery/package-info.java +++ b/scuttlebutt-discovery/src/main/java/org/apache/tuweni/scuttlebutt/discovery/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Scuttlebutt discovery service. * * This library implements the local discovery service of the Secure Scuttlebutt protocol as defined in diff --git a/scuttlebutt-handshake/build.gradle b/scuttlebutt-handshake/build.gradle index fb770ac..d3bf9af 100644 --- a/scuttlebutt-handshake/build.gradle +++ b/scuttlebutt-handshake/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ description = 'Scuttlebutt Handshake library' dependencies { diff --git a/scuttlebutt-handshake/src/main/java/org/apache/tuweni/scuttlebutt/handshake/package-info.java b/scuttlebutt-handshake/src/main/java/org/apache/tuweni/scuttlebutt/handshake/package-info.java index a90b10e..c846912 100644 --- a/scuttlebutt-handshake/src/main/java/org/apache/tuweni/scuttlebutt/handshake/package-info.java +++ b/scuttlebutt-handshake/src/main/java/org/apache/tuweni/scuttlebutt/handshake/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Scuttlebutt handshake utilities. * * This library holds core constructs to help represent Scuttlebutt identities as described in diff --git a/scuttlebutt-handshake/src/main/java/org/apache/tuweni/scuttlebutt/handshake/vertx/package-info.java b/scuttlebutt-handshake/src/main/java/org/apache/tuweni/scuttlebutt/handshake/vertx/package-info.java index e09f228..0fb574f 100644 --- a/scuttlebutt-handshake/src/main/java/org/apache/tuweni/scuttlebutt/handshake/vertx/package-info.java +++ b/scuttlebutt-handshake/src/main/java/org/apache/tuweni/scuttlebutt/handshake/vertx/package-info.java @@ -1,11 +1,21 @@ -/** +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Scuttlebutt Vert.x server to contact for handshaking. * - * This library holds core constructs to help represent Scuttlebutt identities as described in - * <a href="https://ssbc.github.io/scuttlebutt-protocol-guide/">the Scuttlebutt protocol guide</a>. + * This library holds core constructs to help represent Scuttlebutt identities as described in <a + * href="https://ssbc.github.io/scuttlebutt-protocol-guide/">the Scuttlebutt protocol guide</a>. * - * <p> - * These classes are included in the standard Tuweni distribution, or separately when using the gradle dependency + * <p> These classes are included in the standard Tuweni distribution, or separately when using the gradle dependency * 'org.apache.tuweni:tuweni-scuttlebutt-handshake' (tuweni-scuttlebutt-handshake.jar). */ @ParametersAreNonnullByDefault diff --git a/scuttlebutt-rpc/build.gradle b/scuttlebutt-rpc/build.gradle index 1c04ff4..0bd4356 100644 --- a/scuttlebutt-rpc/build.gradle +++ b/scuttlebutt-rpc/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ description = 'Scuttlebutt RPC library' dependencies { diff --git a/scuttlebutt/build.gradle b/scuttlebutt/build.gradle index 7cc7cda..366169d 100644 --- a/scuttlebutt/build.gradle +++ b/scuttlebutt/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ description = 'Scuttlebutt Core library' dependencies { diff --git a/scuttlebutt/src/main/java/org/apache/tuweni/scuttlebutt/package-info.java b/scuttlebutt/src/main/java/org/apache/tuweni/scuttlebutt/package-info.java index 2214bf6..9a62fc5 100644 --- a/scuttlebutt/src/main/java/org/apache/tuweni/scuttlebutt/package-info.java +++ b/scuttlebutt/src/main/java/org/apache/tuweni/scuttlebutt/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Scuttlebutt core utilities. * * This library holds core constructs to help represent Scuttlebutt identities as described in diff --git a/settings.gradle b/settings.gradle index 27d3a09..99c3ff0 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,3 +1,15 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ rootProject.name='tuweni' include 'bytes' include 'concurrent' diff --git a/ssz/build.gradle b/ssz/build.gradle index 4fdabd4..f758de0 100644 --- a/ssz/build.gradle +++ b/ssz/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ description = 'Simple Serialize (SSZ) encoding and decoding.' dependencies { diff --git a/ssz/src/main/java/org/apache/tuweni/ssz/package-info.java b/ssz/src/main/java/org/apache/tuweni/ssz/package-info.java index bb0e5d1..1a5c9b6 100644 --- a/ssz/src/main/java/org/apache/tuweni/ssz/package-info.java +++ b/ssz/src/main/java/org/apache/tuweni/ssz/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Simple Serialize (SSZ) encoding and decoding. * <p> * An implementation of the Ethereum Simple Serialize (SSZ) algorithm, as described at <a href= diff --git a/toml/README.md b/toml/README.md index 13bc81c..9d58981 100644 --- a/toml/README.md +++ b/toml/README.md @@ -11,8 +11,6 @@ runtime library. ## Usage -Parsing is straightforward: - ``` Path source = Paths.get("/path/to/file.toml"); TomlParseResult result = Toml.parse(source); @@ -20,3 +18,16 @@ result.errors().forEach(error -> System.err.println(error.toString())); String value = result.getString("a. dotted . key"); ``` + +# License + +Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE +file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file +to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the +License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on +an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the +specific language governing permissions and limitations under the License. \ No newline at end of file diff --git a/toml/build.gradle b/toml/build.gradle index a911b04..13400d8 100644 --- a/toml/build.gradle +++ b/toml/build.gradle @@ -1,3 +1,15 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ description = 'A parser for Tom\'s Obvious, Minimal Language (TOML).' apply plugin: 'antlr' diff --git a/toml/src/main/antlr/org/apache/tuweni/toml/internal/TomlLexer.g4 b/toml/src/main/antlr/org/apache/tuweni/toml/internal/TomlLexer.g4 index 875a604..fce5e6a 100644 --- a/toml/src/main/antlr/org/apache/tuweni/toml/internal/TomlLexer.g4 +++ b/toml/src/main/antlr/org/apache/tuweni/toml/internal/TomlLexer.g4 @@ -1,3 +1,16 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ + lexer grammar TomlLexer; channels { COMMENTS, WHITESPACE } diff --git a/toml/src/main/antlr/org/apache/tuweni/toml/internal/TomlParser.g4 b/toml/src/main/antlr/org/apache/tuweni/toml/internal/TomlParser.g4 index 810b75a..e634ccd 100644 --- a/toml/src/main/antlr/org/apache/tuweni/toml/internal/TomlParser.g4 +++ b/toml/src/main/antlr/org/apache/tuweni/toml/internal/TomlParser.g4 @@ -1,3 +1,15 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ parser grammar TomlParser; options { tokenVocab=TomlLexer; } diff --git a/toml/src/main/java/org/apache/tuweni/toml/package-info.java b/toml/src/main/java/org/apache/tuweni/toml/package-info.java index 17caa06..b734e5c 100644 --- a/toml/src/main/java/org/apache/tuweni/toml/package-info.java +++ b/toml/src/main/java/org/apache/tuweni/toml/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * A parser for Tom's Obvious, Minimal Language (TOML). * <p> * A parser and semantic checker for Tom's Obvious, Minimal Language (TOML), as described at diff --git a/units/build.gradle b/units/build.gradle index baff2b8..9b30a79 100644 --- a/units/build.gradle +++ b/units/build.gradle @@ -1,3 +1,15 @@ +/** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ description = 'Classes and utilities for working with 256 bit integers.' dependencies { diff --git a/units/src/main/java/org/apache/tuweni/units/bigints/package-info.java b/units/src/main/java/org/apache/tuweni/units/bigints/package-info.java index cd26027..824ab48 100644 --- a/units/src/main/java/org/apache/tuweni/units/bigints/package-info.java +++ b/units/src/main/java/org/apache/tuweni/units/bigints/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Classes and utilities for working with 256 bit integers. */ @ParametersAreNonnullByDefault diff --git a/units/src/main/java/org/apache/tuweni/units/ethereum/package-info.java b/units/src/main/java/org/apache/tuweni/units/ethereum/package-info.java index 1853a65..220fc5f 100644 --- a/units/src/main/java/org/apache/tuweni/units/ethereum/package-info.java +++ b/units/src/main/java/org/apache/tuweni/units/ethereum/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Classes and utilities for working with Ethereum units. */ @ParametersAreNonnullByDefault diff --git a/units/src/main/java/org/apache/tuweni/units/package-info.java b/units/src/main/java/org/apache/tuweni/units/package-info.java index 8cee8a9..22ae5f3 100644 --- a/units/src/main/java/org/apache/tuweni/units/package-info.java +++ b/units/src/main/java/org/apache/tuweni/units/package-info.java @@ -1,4 +1,15 @@ /** + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + * * Classes and utilities for working with 256 bit integers and Ethereum units. * * <p> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
