name: Setup build description: Installs the JDKs and Gradle and configures the SteamWar Maven repository inputs: maven-credentials: description: Contents of steamwar.properties required: true runs: using: composite steps: - name: Setup Java uses: actions/setup-java@v5 with: distribution: 'temurin' # The last version becomes the default java-version: | 8 11 17 21 - name: Setup Gradle uses: gradle/actions/setup-gradle@v6 - name: Setup Maven Repository shell: bash env: SW_MAVEN_CREDENTIALS: ${{ inputs.maven-credentials }} run: | echo "$SW_MAVEN_CREDENTIALS" > steamwar.properties