fix: publish script should close and release as well
@@ -58,7 +58,7 @@ tasks:
- git diff-index --quiet HEAD
cmds:
- git clean -ffdx
- - ./gradlew publishToSonatype
+ - ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
- perl -p -i -e "s#sdk-jdk7\.gradle#sdk.gradle#g" sdk/build.gradle
- git clean -ffdx
- rm -f sdk/src/main/java/com/hedera/hashgraph/sdk/FutureConverter.java
@@ -70,8 +70,8 @@ tasks:
- perl -p -i -e "s#StreamSupport\.stream\((.*)\).map#\1.stream().map#g" $FILES
- perl -p -i -e "s#import static com.hedera.hashgraph.sdk.FutureConverter.toCompletableFuture;#import net.javacrumbs.futureconverter.guavacommon.GuavaFutureUtils;\nimport net.javacrumbs.futureconverter.java8common.Java8FutureUtils;#g" $FILES
- perl -p -i -e "s#toCompletableFuture\((.*)\).handle#Java8FutureUtils.createCompletableFuture(GuavaFutureUtils.createValueSource(\1)).handle#g" $FILES
- - ./gradlew publishToSonatype
+ - ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
- perl -p -i -e "s#sdk\.gradle#sdk-full.gradle#g" sdk/build.gradle
- git clean -ffdx
- - ./gradlew publishToSonatype
+ - ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
- git restore sdk executable-processor
