Skip to content

Commit

Permalink
Merge pull request #12 from palantir/feature/fixrelease
Browse files Browse the repository at this point in the history
Change plugin for jar only
  • Loading branch information
daberkow authored Jan 3, 2024
2 parents 843e0d9 + e857f38 commit c5c9688
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 20 deletions.
31 changes: 13 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2.1

jobs:
build:
check:
docker:
- image: cimg/openjdk:11.0
resource_class: large
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
- store_artifacts:
path: ~/assets-cache

deploy:
publish:
docker:
- image: cimg/openjdk:11.0
steps:
Expand All @@ -64,7 +64,7 @@ jobs:
command: |
./gradlew --stacktrace publish
deploy_sandbox:
trial-publish:
docker:
- image: cimg/openjdk:11.0
steps:
Expand All @@ -79,18 +79,13 @@ workflows:
version: 2
build-and-deploy:
jobs:
- build
- deploy_sandbox:
requires:
- build
filters:
branches:
only:
- develop
- deploy:
requires:
- build
filters:
branches:
only:
- release
- check:
filters: { tags: { only: /.*/ } }

- trial-publish:
requires: [ check ]
filters: { branches: { ignore: develop } }

- publish:
requires: [ check, trial-publish ]
filters: { tags: { only: /.*/ }, branches: { only: develop } }
3 changes: 3 additions & 0 deletions .circleci/template.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
export CIRCLECI_TEMPLATE=java-library-oss
export JDK=11
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ buildscript {

dependencies {
classpath 'com.palantir.baseline:gradle-baseline-java:5.31.0'
classpath 'com.palantir.gradle.externalpublish:gradle-external-publish-plugin:1.12.0'
classpath 'com.palantir.javaformat:gradle-palantir-java-format:2.39.0'
classpath 'gradle.plugin.org.inferred:gradle-processors:3.7.0'
}
Expand All @@ -16,6 +15,7 @@ plugins {
id 'java'
id 'com.github.ben-manes.versions' version '0.50.0'
id 'com.palantir.git-version' version '3.0.0'
id 'com.palantir.external-publish' version '1.12.0'
}

allprojects {
Expand All @@ -27,7 +27,6 @@ apply plugin: 'com.palantir.baseline-config'
apply plugin: 'com.palantir.baseline-checkstyle'
apply plugin: 'com.palantir.baseline-error-prone'
apply plugin: 'com.palantir.baseline-idea'
apply plugin: 'com.palantir.external-publish'
apply plugin: 'com.palantir.external-publish-jar'

sourceCompatibility = JavaVersion.VERSION_11
Expand Down

0 comments on commit c5c9688

Please sign in to comment.