Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/8.0.0 #561

Merged
merged 180 commits into from
Mar 8, 2023
Merged
Show file tree
Hide file tree
Changes from 178 commits
Commits
Show all changes
180 commits
Select commit Hold shift + click to select a range
0f36999
Single TEE tag
jeremyjams Jun 28, 2022
426c236
Removed old TEE tags
jeremyjams Jun 28, 2022
7472811
Merge branch 'develop' of github.com:iExecBlockchainComputing/iexec-c…
jeremyjams Jul 22, 2022
f3fa31e
Use gramine version
jeremyjams Jul 22, 2022
a916062
Run Gramine task on worker
Aug 12, 2022
c56b433
Remove static SMS configuration
Aug 12, 2022
fff5132
Get `SmsClient` on task start or abort
Aug 24, 2022
d92a873
Create `SmsService#isSmsClientReady`
Aug 24, 2022
2a083ed
Rename `SmsClientConfiguration` into `SmsClientProviderConfiguration`
Aug 25, 2022
22ca38d
Get SmsClient from ChainDeal for uninitialized tasks
Aug 25, 2022
564d3fe
Fix SmsService tests
Aug 25, 2022
aa7fcef
Merge pull request #519 from iExecBlockchainComputing/feature/read-gr…
mcornaton Aug 30, 2022
86f802f
Merge branch 'develop' into feature/gramine
mcornaton Aug 31, 2022
64cd0da
Update `SmsClientProvider` to avoid calling the chain too often
mcornaton Aug 31, 2022
56ea2ea
Simplify `SmslClient#getTeeServicesConfiguration` calls
mcornaton Sep 1, 2022
dd8cb6c
Purge maps storing task after completion or failure
mcornaton Sep 5, 2022
488a037
Check SMS TEE enclave configuration before initializing task
mcornaton Sep 5, 2022
cd6dab8
Merge branch 'feature/gramine-refactor-tee-configuration' into featur…
mcornaton Sep 7, 2022
5d7d297
Merge pull request #521 from iExecBlockchainComputing/feature/gramine…
mcornaton Sep 9, 2022
9d2d3c6
Merge branch 'feature/gramine' into feature/gramine-purge-maps
mcornaton Sep 9, 2022
45b5fed
Add `PurgeConfigurationTests`
mcornaton Sep 9, 2022
1a9d33b
Add documentation and log to `purgeService` related methods
mcornaton Sep 14, 2022
4e1ebb8
Move purge elements to `com.iexec.common.lifecycle.purge` package
mcornaton Sep 14, 2022
a029c7d
Update `ReplicateSupplyService` to implement `Purgeable`
mcornaton Sep 14, 2022
d1303ba
Introduce `CategoriesUtils`
mcornaton Sep 14, 2022
d3e5d4f
Move `CategoriesUtils` to package `com.iexec.common.chain`
mcornaton Sep 15, 2022
303ef42
Read SMS url on registry, store it and forward it to worker
jeremyjams Sep 15, 2022
301ff7b
Merge pull request #522 from iExecBlockchainComputing/feature/gramine…
mcornaton Sep 16, 2022
290a7e3
Update and add tests
jeremyjams Sep 16, 2022
5f0cf07
Merge branch 'feature/gramine' of github.com:iExecBlockchainComputing…
jeremyjams Sep 19, 2022
82186dc
Update gradle.properties
jeremyjams Sep 19, 2022
a99765b
Update gradle.properties
jeremyjams Sep 20, 2022
ff9ce31
Merge pull request #515 from iExecBlockchainComputing/feature/gramine
jeremyjams Sep 20, 2022
821bc77
Merge branch 'develop' of github.com:iExecBlockchainComputing/iexec-c…
jeremyjams Sep 20, 2022
a6d83ea
Build platform jar
jeremyjams Sep 20, 2022
5689829
Add sms & platform tests
jeremyjams Sep 21, 2022
2530e9a
Remove warnings
jeremyjams Sep 21, 2022
8a5a66d
Remove useless comment
jeremyjams Sep 21, 2022
5d9ec70
Use ReplicateTaskSummary
jeremyjams Sep 21, 2022
be18a14
Remove completed todo
jeremyjams Sep 21, 2022
d0e0cb1
Switch to @Configuration & add final
jeremyjams Sep 22, 2022
3a43a3e
Return optional and log on error
jeremyjams Sep 22, 2022
8b5f035
Fix missing test from refactoring
jeremyjams Sep 22, 2022
744c601
Add arg to log
jeremyjams Sep 23, 2022
008862b
Add arg to log
jeremyjams Sep 23, 2022
dea010c
Set apropriate local var in log
jeremyjams Sep 23, 2022
852b3bf
Update gradle.properties
jeremyjams Sep 23, 2022
32aece6
Merge pull request #523 from iExecBlockchainComputing/feature/platfor…
jeremyjams Sep 23, 2022
5e1f9fb
Refactor `Replicate#getLastRelevantStatus` to remove the `Optional` r…
mcornaton Oct 4, 2022
2d96a12
Remove unused import
mcornaton Oct 4, 2022
dbcab6a
Add fixme on `Replicate#statusUpdateList`
mcornaton Oct 4, 2022
566e532
Use null-safe `==` on enum member
mcornaton Oct 4, 2022
7e35e70
Use null-safe `==` on enum members
mcornaton Oct 4, 2022
625d074
Merge pull request #524 from iExecBlockchainComputing/bugfix/remove-o…
mcornaton Oct 4, 2022
f133f22
Replace TeeEnclaveProvider with TeeFramework
jbern0rd Oct 11, 2022
33aa6f7
Rename checkSmsTeeEnclaveProvider to checkSmsTeeFramework
jbern0rd Oct 12, 2022
ec8fdfe
Merge pull request #525 from iExecBlockchainComputing/feature/rename-…
jbern0rd Oct 13, 2022
cbb8d18
Merge remote-tracking branch 'origin/master' into backmerge/7.2.2
jbern0rd Dec 20, 2022
3994ca6
Remove obsolete usage of SmsConfiguration in PublicConfigurationService
jbern0rd Dec 20, 2022
1a9cb5b
Use iexec-common 6.2.1-NEXT-SNAPSHOT
jbern0rd Dec 21, 2022
7b514e7
Use iexec-blockchain-adapter-api 7.1.2-NEXT-SNAPSHOT, iexec-result-pr…
jbern0rd Dec 21, 2022
cb7477e
Merge pull request #535 from iExecBlockchainComputing/backmerge/7.2.2
jbern0rd Dec 21, 2022
f07d3a0
Rework TaskControllerTests to fix shouldGetTaskLogsWhenAuthenticated
jbern0rd Dec 21, 2022
66ab471
Merge pull request #536 from iExecBlockchainComputing/bugfix/fix-fail…
jbern0rd Dec 22, 2022
f997c8f
Use gradle 7.6
jbern0rd Dec 27, 2022
3d57402
Replace Report.enabled property with Report.required
jbern0rd Dec 27, 2022
07da0c3
Use freefair lombok gradle plugin 6.6.1
jbern0rd Dec 27, 2022
baa9c6c
Use Spring dependency management gradle plugin 1.1.0
jbern0rd Dec 27, 2022
82f209b
Configure java toolchain in build.gradle
jbern0rd Dec 28, 2022
40df212
Remove unused references
jeremyjams Jan 2, 2023
c2e0703
Removed unused references from tests
jeremyjams Jan 2, 2023
9e990c5
Merge pull request #538 from iExecBlockchainComputing/feature/remove-…
jeremyjams Jan 2, 2023
76c1d5c
Merge remote-tracking branch 'origin/develop' into feature/gradle-7.6
jbern0rd Jan 3, 2023
3e4192f
Merge pull request #537 from iExecBlockchainComputing/feature/gradle-7.6
jbern0rd Jan 3, 2023
512f13d
Replace slf4j-test with spring-boot-test output capture extension
jbern0rd Jan 3, 2023
8da96c0
Use @Mock annotation to fix unchecked casts in ConfigurationRepositor…
jbern0rd Jan 3, 2023
321c71f
Fix code smells in BlockchainAdapterServiceTests
jbern0rd Jan 3, 2023
c01dd0d
Remove unnecessary public modifier in EIP712ChallengeServiceTests
jbern0rd Jan 3, 2023
fe238da
Use ReflectionTestUtils in ReplicateSupplyServiceTests
jbern0rd Jan 3, 2023
1f5c457
Remove unused import in ReplicateSupplyServiceTests
jbern0rd Jan 3, 2023
3bcb662
Merge pull request #539 from iExecBlockchainComputing/feature/improve…
jbern0rd Jan 4, 2023
8f0d15f
Display `OnDealEvent` origin
mcornaton Jan 4, 2023
e42e242
Rename variables
mcornaton Jan 4, 2023
dd8d7a7
Merge pull request #540 from iExecBlockchainComputing/feature/display…
mcornaton Jan 4, 2023
2b9a606
Fix ReplicateServiceTests
jbern0rd Jan 4, 2023
2efa8ce
Fix ReplicateTests
jbern0rd Jan 4, 2023
36a1039
Fix TaskServiceTests
jbern0rd Jan 4, 2023
7d13d99
Fix TaskTests
jbern0rd Jan 4, 2023
7b33233
Fix TaskUpdateRequestManagerTests
jbern0rd Jan 4, 2023
651b59c
Fix WorkerServiceTests
jbern0rd Jan 4, 2023
db6472b
Rename to VersionServiceTests and remove public modifier
jbern0rd Jan 4, 2023
1520c09
Remove unncessary assert to remove code smell in WorkerServiceTests
jbern0rd Jan 5, 2023
de6db30
Merge pull request #541 from iExecBlockchainComputing/bugfix/code-sme…
jbern0rd Jan 5, 2023
ffd51ed
Update to SpringBoot@2.6.14
mcornaton Jan 10, 2023
41c69ae
Add explicit `commons-lang3` dependency
mcornaton Jan 10, 2023
0c72792
Add Todo to remove Spring Cloud dependency
mcornaton Jan 10, 2023
bfd41fb
Merge pull request #542 from iExecBlockchainComputing/feature/spring-…
mcornaton Jan 10, 2023
42cffa7
Add `shouldAddTaskASingleTime` test
mcornaton Jan 11, 2023
7072781
Increase timeout in test
mcornaton Jan 11, 2023
76b2570
Lock `addTask` based on `chainTaskId`
mcornaton Jan 11, 2023
5858b51
Add comments to test
mcornaton Jan 11, 2023
1046448
Merge remote-tracking branch 'origin/master' into develop
jbern0rd Jan 18, 2023
9cc295f
Merge pull request #545 from iExecBlockchainComputing/backmerge/7.3.0
jbern0rd Jan 19, 2023
fc31613
Init changelog for next version
jeremyjams Jan 23, 2023
10bec56
Add and remove environment variables in readme
jeremyjams Jan 23, 2023
ac33eb3
Update URL wording
jeremyjams Jan 23, 2023
29fa8f7
Remove public chain configuration
jeremyjams Jan 23, 2023
6b3b722
Update readme wording
jeremyjams Jan 23, 2023
36ae166
Set correct gradle version in changelog
jeremyjams Jan 23, 2023
befb722
Update README.md configuration
jeremyjams Jan 24, 2023
8e7a9bc
Update configuration readme
jeremyjams Jan 24, 2023
e6ec09d
Remove unused chainId, isSidechain and hubAddress from config and readme
jeremyjams Jan 24, 2023
e10ee56
Update readme platform registry env var wording
jeremyjams Jan 24, 2023
cd8e61d
Categorize changes in changelog
jeremyjams Jan 24, 2023
268f7fe
Remove PR numbers in changelog
jeremyjams Jan 24, 2023
2f4fd37
Add OkHttp upgrade in changelog
jeremyjams Jan 25, 2023
60bdb62
Merge pull request #546 from iExecBlockchainComputing/feature/update-…
jeremyjams Jan 25, 2023
48b97f7
Remove `LockRunner` in `TaskService#addTask` and catch exception instead
mcornaton Jan 30, 2023
1cde611
Merge branch 'develop' into bugfix/task-added-twice
mcornaton Jan 30, 2023
69d8738
Fix `TaskServiceTests#shouldNotAddTask`
mcornaton Jan 30, 2023
d8e93fb
Merge pull request #543 from iExecBlockchainComputing/bugfix/task-add…
mcornaton Jan 30, 2023
484e711
Use existing PublicConfiguration#toString method
jbern0rd Feb 2, 2023
29d0272
Update CHANGELOG.md for next release
jbern0rd Feb 3, 2023
1947b1a
Merge remote-tracking branch 'origin/develop' into feature/improve-pu…
jbern0rd Feb 3, 2023
68c5248
Merge pull request #548 from iExecBlockchainComputing/feature/improve…
jbern0rd Feb 6, 2023
725186b
Use @GetMapping in MetricController
jbern0rd Feb 7, 2023
f2aff64
Update CHANGELOG.md for next release
jbern0rd Feb 7, 2023
a90fd13
Merge pull request #549 from iExecBlockchainComputing/bugfix/rest-ann…
jbern0rd Feb 8, 2023
0d55e52
Check task is correctly added on parallel `TaskService#addTask` calls
mcornaton Jan 30, 2023
78efe10
Fix typo
mcornaton Jan 30, 2023
541bf21
Use XOR instead of OR in test
mcornaton Feb 13, 2023
d7f7563
Add more concurrent requests to `shouldAddTaskASingleTime`
mcornaton Feb 13, 2023
a3d8679
Merge pull request #547 from iExecBlockchainComputing/bugfix/task-add…
mcornaton Feb 15, 2023
97dd5de
Merge remote-tracking branch 'origin/master' into backmerge/7.3.1
jbern0rd Feb 20, 2023
13fa197
Merge pull request #552 from iExecBlockchainComputing/backmerge/7.3.1
jbern0rd Feb 20, 2023
fd830e9
Remove spring-cloud-starter-openfeign dependency
jbern0rd Feb 20, 2023
61853c5
Remove explicit awaitility dependency version to use Spring Boot version
jbern0rd Feb 20, 2023
27d49e3
Update CHANGELOG.md
jbern0rd Feb 20, 2023
2af850b
Merge pull request #553 from iExecBlockchainComputing/feature/remove-…
jbern0rd Feb 21, 2023
345d8bd
Set expiration date for JWT and store it in cache
jbern0rd Feb 21, 2023
3bd571c
Add tests in ChallengeServiceTests and JwtTokenProviderTests
jbern0rd Feb 21, 2023
e2e5ad8
computeIfAbsent returns the existing or computed value
jbern0rd Feb 21, 2023
d66528e
Use SecureRandom to compute challenge in ChallengeService
jbern0rd Feb 22, 2023
b56c839
Check token validity on cache hit in JwtTokenProvider
jbern0rd Feb 22, 2023
589eca6
Remove 2 logging events in JwtTokenProvider
jbern0rd Feb 22, 2023
94c7e20
Do not check JWT valid in createToken, improve cache purge in isValid
jbern0rd Feb 22, 2023
0ca2211
Go back to expiring map in Challenge service with a shorter expiratio…
jbern0rd Feb 23, 2023
f550949
Enforce unique challenge for each login attempt
jbern0rd Feb 23, 2023
cbde6e8
Do not use challenge in JWT claims, update claims for better complian…
jbern0rd Feb 23, 2023
8349102
Consume challenge only if it was signed by its owner
jbern0rd Feb 23, 2023
5248322
Update javadoc comment on isValidToken
jbern0rd Feb 23, 2023
9509d5e
Rename createToken to getOrCreateToken
jbern0rd Feb 23, 2023
8ce604d
Fix javadoc comment in JwtTokenProvider
jbern0rd Feb 24, 2023
a305f78
Update javadoc comment in JwtTokenProvider
jbern0rd Feb 24, 2023
8deabb7
Update javadoc comment in JwtTokenProvider
jbern0rd Feb 24, 2023
86e2f74
Add test on JWT validity when signed with a wrong key
jbern0rd Feb 24, 2023
fc94c93
Update CHANGELOG.md
jbern0rd Feb 24, 2023
8f128f5
Merge pull request #554 from iExecBlockchainComputing/feature/cache-j…
jbern0rd Feb 24, 2023
65bf5b8
Show application version on banner
jbern0rd Feb 24, 2023
45ba4c3
Update CHANGELOG.md
jbern0rd Feb 24, 2023
ee6b2f5
Merge pull request #555 from iExecBlockchainComputing/feature/add-ver…
jbern0rd Feb 27, 2023
81d084b
Upgrade to eclipse-temurin@11.0.18
jeremyjams Feb 28, 2023
83b1ab0
Merge pull request #556 from iExecBlockchainComputing/feature/eclipse…
jeremyjams Feb 28, 2023
9c0042e
Upgrade jjwt dependency to 0.11.5
jbern0rd Mar 1, 2023
37bf78e
Update CHANGELOG.md
jbern0rd Mar 1, 2023
8db79b1
Resolve depreciation notices
jbern0rd Mar 1, 2023
e845f4e
Merge pull request #557 from iExecBlockchainComputing/feature/upgrade…
jbern0rd Mar 2, 2023
65ebd2d
Always return a value in the body when replicate status update is aut…
jbern0rd Mar 2, 2023
0648bde
Update CHANGELOG.md
jbern0rd Mar 2, 2023
57143be
Add javadoc comment on `updateReplicateStatus`
jbern0rd Mar 2, 2023
26603ba
Merge pull request #558 from iExecBlockchainComputing/bugfix/always-r…
jbern0rd Mar 2, 2023
3f00e47
Upgrade to iexec-common@7.0.0
jeremyjams Mar 2, 2023
a036dc7
Merge pull request #559 from iExecBlockchainComputing/feature/iexec-c…
jeremyjams Mar 2, 2023
da70911
Use jenkins-library 2.4.0
jbern0rd Mar 3, 2023
86d60b5
Merge pull request #560 from iExecBlockchainComputing/feature/jenkins…
jbern0rd Mar 3, 2023
b53142c
Add PR 543 & 547 to changelog
jeremyjams Mar 6, 2023
4d617f5
Update release date in changelog
jeremyjams Mar 6, 2023
26985ca
Init release candidate
jeremyjams Mar 6, 2023
be1c2c4
Increment version to rc1
jeremyjams Mar 6, 2023
223ba3e
Release version 8.0.0
jeremyjams Mar 8, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,35 @@

All notable changes to this project will be documented in this file.

## [[8.0.0]](https://github.com/iExecBlockchainComputing/iexec-core/releases/tag/v8.0.0) 2023-03-06
jeremyjams marked this conversation as resolved.
Show resolved Hide resolved

### New Features
* Support Gramine framework for TEE tasks.
* Retrieve location of SMS services through an _iExec Platform Registry_.
* Improve authentication on scheduler.
* burn challenge after login.
* handle JWT expiration through the expiration claim.
* cache JWT until expiration.
* better claims usage.
* Show application version on banner.
### Bug Fixes
* Always return a `TaskNotificationType` on replicate status update when it has been authorized.
* Handle task added twice.
### Quality
* Improve code quality and tests.
* Removed unused variables in configuration.
* Use existing `toString()` method to serialize and hash scheduler public configuration.
* Use recommended annotation in `MetricController`.
* Remove `spring-cloud-starter-openfeign` dependency.
### Dependency Upgrades
* Replace the deprecated `openjdk` Docker base image with `eclipse-temurin` and upgrade to Java 11.0.18 patch.
* Upgrade to Spring Boot 2.6.14.
* Upgrade to Gradle 7.6.
* Upgrade OkHttp to 4.9.0.
* Upgrade `jjwt` to `jjwt-api` 0.11.5.
* Upgrade to `iexec-common` 7.0.0.
* Upgrade to `jenkins-library` 2.4.0.

## [[7.3.1]](https://github.com/iExecBlockchainComputing/iexec-core/releases/tag/v7.3.1) 2023-02-17

* Subscribe only to deal events targeting a specific workerpool.
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM openjdk:11.0.15-jre-slim
FROM eclipse-temurin:11.0.18_10-jre

ARG jar

Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('global-jenkins-library@2.2.3') _
@Library('global-jenkins-library@2.4.0') _
buildJavaProject(
buildInfo: getBuildInfo(),
integrationTestsEnvVars: [],
Expand Down
15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ To run properly, the _iExec Core Scheduler_ requires:
* A _MongoDB_ instance to persist its data.
* An _iExec Blockchain Adapter_ for several blockchain network interactions.
* An _iExec Result Proxy_ to check if tasks results have been published.
* An _iExec Secret Management Service_ (_iExec SMS_) for secret and enclave sessions management of TEE tasks.
* An _iExec Platform Registry_ to retrieve locations of _iExec SMS_ services.
* One or many _iExec Secret Management Service_ instances (referenced by the _iExec Platform Registry_) to handle secrets and enclave sessions of TEE tasks.

You can configure the _iExec Core Scheduler_ with the following properties:

Expand All @@ -23,17 +24,16 @@ You can configure the _iExec Core Scheduler_ with the following properties:
| `IEXEC_CORE_PORT` | Server port of the _iExec Core Scheduler_. | Positive integer | `13000` |
| `MONGO_HOST` | _MongoDB_ server host. Cannot be set with URI. | String | `localhost` |
| `MONGO_PORT` | _MongoDB_ server port. Cannot be set with URI. | Positive integer | `13002` |
| `IEXEC_PLATFORM_REGISTRY` | _iExec Platform Registry_ server URL. | URL | |
| `IEXEC_PLATFORM_REGISTRY_STACK` | [optional] Use a specific stack configuration exposed by the _iExec Platform Registry_. | String | |
| `IEXEC_PLATFORM_REGISTRY_LABEL` | [optional] Use a labeled version of configuration files exposed by the _iExec Platform Registry_. It might be a Git label such as `main`, `v10` or `07998be`. | String | |
| `REVEAL_TIMEOUT_PERIOD` | Detector period to track reveal timeouts for tasks. | Positive integer | `120000` |
| `IEXEC_ASK_REPLICATE_PERIOD` | Worker configuration, interval in milliseconds between 2 replicate requests. | Positive integer | `5000` |
| `IEXEC_CORE_REQUIRED_WORKER_VERSION` | Empty value will allow any worker version. | String | |
| `IEXEC_WORKERS_WHITELIST` | List of worker addresses allowed to connect to the _iExec Core Scheduler_. | String | |
| `IEXEC_CORE_WALLET_PATH` | Path to the wallet of the server. | String | `./src/main/resources/wallet/encrypted-wallet_scheduler.json` |
| `IEXEC_CORE_WALLET_PASSWORD` | Password to unlock the wallet of the server. | String | `whatever` |
| `IEXEC_CHAIN_ID` | Chain ID of the blockchain network to connect. | Positive integer | `17` |
| `IEXEC_IS_SIDECHAIN` | Define if iExec on-chain protocol is built on top of token (`false`) or native currency (`true`). | Boolean | `false` |
| `IEXEC_PRIVATE_CHAIN_ADDRESS` | Private URL to connect to the blockchain node. | URL | `http://localhost:8545` |
| `IEXEC_PUBLIC_CHAIN_ADDRESS` | [unused] Public URL to connect to the blockchain node. | URL | `http://localhost:8545` |
| `IEXEC_HUB_ADDRESS` | Proxy contract address to interact with the iExec on-chain protocol. | String | `0xBF6B2B07e47326B7c8bfCb4A5460bef9f0Fd2002` |
| `POOL_ADDRESS` | On-chain address of the workerpool managed by the current _iExec Core Scheduler_. | String | `0x365E7BABAa85eC61Dffe5b520763062e6C29dA27` |
| `IEXEC_START_BLOCK_NUMBER` | Subscribe to new deal events from a specific block number. | Positive integer | `0` |
| `IEXEC_GAS_PRICE_MULTIPLIER` | Transactions will be sent with `networkGasPrice * gasPriceMultiplier`. | Float | `1.0` |
Expand All @@ -46,11 +46,6 @@ You can configure the _iExec Core Scheduler_ with the following properties:
| `IEXEC_RESULT_REPOSITORY_PROTOCOL` | _iExec Result Proxy_ server communication protocol. | String | `http` |
| `IEXEC_RESULT_REPOSITORY_HOST` | _iExec Result Proxy_ server host. | String | `localhost` |
| `IEXEC_RESULT_REPOSITORY_PORT` | _iExec Result Proxy_ server port. | Positive integer | `13200` |
| `IEXEC_IPFS_HOST` | [unused] _IPFS_ node host. | String | `127.0.0.1` |
| `IEXEC_IPFS_PORT` | [unused] _IPFS_ node port. | Positive integer | `5001` |
| `IEXEC_SMS_PROTOCOL` | _iExec SMS_ server communication protocol. | String | `http` |
| `IEXEC_SMS_HOST` | _iExec SMS_ server host. | String | `localhost` |
| `IEXEC_SMS_PORT` | _iExec SMS_ server port. | Positive integer | `13300` |
| `IEXEC_CORE_MANAGEMENT_ACTUATORS` | Endpoint IDs that should be included or `*` for all. | String | `health, info` |
| `IEXEC_CORE_GRAYLOG_HOST` | _Graylog_ server host. | String | `localhost` |
| `IEXEC_CORE_GRAYLOG_PORT` | _Graylog_ server port. | Positive integer | `12201` |
Expand Down
51 changes: 31 additions & 20 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
plugins {
id 'java'
id 'eclipse'
id 'io.freefair.lombok' version '6.6.1'
id 'org.springframework.boot' version '2.6.14'
id 'io.spring.dependency-management' version '1.1.0'
id 'jacoco'
id 'org.sonarqube' version '3.3'
id 'maven-publish'
id "org.springframework.boot" version "2.6.2"
id "io.spring.dependency-management" version "1.0.11.RELEASE"
}

group = 'com.iexec.core'
sourceCompatibility = 11
targetCompatibility = 11

ext {
springCloudVersion = '2021.0.0'
springCloudVersion = '2021.0.5'
jjwtVersion = '0.11.5'
mongockVersion = '4.2.7.BETA'
}

Expand All @@ -38,7 +37,6 @@ repositories {
maven {
url "https://nexus.intra.iex.ec/repository/maven-public/"
}

maven { url "https://jitpack.io" }
}

Expand All @@ -64,23 +62,27 @@ dependencies {
implementation "org.springframework.boot:spring-boot-starter-data-mongodb"
implementation "org.springframework.boot:spring-boot-starter-hateoas"
implementation "org.springframework.boot:spring-boot-starter-security"
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation "org.springframework.boot:spring-boot-starter-web"
implementation "org.springframework.boot:spring-boot-starter-websocket"
implementation "org.springframework.cloud:spring-cloud-starter-openfeign"
implementation 'org.springframework.cloud:spring-cloud-starter-config'
implementation "org.springframework.retry:spring-retry"

// apache commons.lang3
implementation 'org.apache.commons:commons-lang3'

// NoSuchMethodError: 'okhttp3.RequestBody okhttp3.RequestBody.create(java.lang.String, okhttp3.MediaType)'
// Spring Boot dependencies BOM enforces okhttp3 3.14.9 in 2.6.X
// It is required to define the dependency version required by web3j until migration to at least Spring Boot 2.7.X
implementation 'com.squareup.okhttp3:okhttp:4.9.0' // Web3j issue: https://github.com/web3j/web3j/issues/1180

testImplementation "org.springframework.boot:spring-boot-starter-test"

// Spring Doc
implementation 'org.springdoc:springdoc-openapi-ui:1.6.3'

// jason web token
implementation "io.jsonwebtoken:jjwt:0.7.0"
implementation "io.jsonwebtoken:jjwt-api:$jjwtVersion"
runtimeOnly "io.jsonwebtoken:jjwt-impl:$jjwtVersion"
runtimeOnly "io.jsonwebtoken:jjwt-jackson:$jjwtVersion"

// expiring map
implementation "net.jodah:expiringmap:0.5.10"
Expand All @@ -93,25 +95,27 @@ dependencies {

implementation 'io.micrometer:micrometer-registry-prometheus:1.8.1'

// lombok
compileOnly "org.projectlombok:lombok:1.18.2"
annotationProcessor "org.projectlombok:lombok:1.18.2"
testCompileOnly "org.projectlombok:lombok:1.18.2"
testAnnotationProcessor "org.projectlombok:lombok:1.18.2"

// mongock
implementation "com.github.cloudyrock.mongock:mongock-spring-v5:${mongockVersion}"
implementation "com.github.cloudyrock.mongock:mongodb-springdata-v2-driver:${mongockVersion}"

testImplementation 'org.springframework.boot:spring-boot-starter-test'

// awaitility
testImplementation 'org.awaitility:awaitility:4.0.1'
testImplementation 'org.awaitility:awaitility'

// mongo
testImplementation 'org.testcontainers:testcontainers:1.16.2'
testImplementation 'org.testcontainers:junit-jupiter:1.16.2'
testImplementation 'org.testcontainers:mongodb:1.16.2'
}

java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}

jar {
enabled = true
archiveClassifier.set('library')
Expand All @@ -121,6 +125,13 @@ springBoot {
buildInfo()
}

tasks.named("bootJar") {
manifest {
attributes("Implementation-Title": "iExec Core Scheduler",
"Implementation-Version": project.version)
}
}

test {
useJUnitPlatform()
}
Expand All @@ -136,7 +147,7 @@ jacoco {
// sonarqube code coverage requires jacoco XML report
jacocoTestReport {
reports {
xml.enabled true
xml.required = true
}
}
tasks.test.finalizedBy tasks.jacocoTestReport
Expand All @@ -145,7 +156,7 @@ tasks.sonarqube.dependsOn tasks.jacocoTestReport
publishing {
publications {
maven(MavenPublication) {
artifact bootJar
artifact tasks.named("bootJar")
from components.java
}
}
Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version=7.3.1
iexecCommonVersion=6.2.0
iexecBlockchainAdapterVersion=7.3.0
iexecResultVersion=7.3.0
iexecSmsVersion=7.3.0
version=8.0.0-rc0
jeremyjams marked this conversation as resolved.
Show resolved Hide resolved
iexecCommonVersion=7.0.0
iexecBlockchainAdapterVersion=8.0.0
iexecResultVersion=8.0.0
iexecSmsVersion=8.0.0

nexusUser
nexusPassword
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading