Skip to content

Commit

Permalink
Target Java 11 via proper non-deprecated java configuration block
Browse files Browse the repository at this point in the history
  • Loading branch information
chadlwilson committed Jul 3, 2023
1 parent b37cac6 commit fc5628f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
id 'java'
}

apply from: "https://raw.githubusercontent.com/gocd/gocd-plugin-gradle-task-helpers/master/helper.gradle?_=${(int) (new Date().toInstant().epochSecond / 60)}"
apply plugin: 'java'

gocdPlugin {
id = 'com.thoughtworks.gocd.elastic-agent.azure'
Expand Down Expand Up @@ -43,8 +45,11 @@ gocdPlugin {
}

version = gocdPlugin.fullVersion(project)
sourceCompatibility = 11
targetCompatibility = 11

java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}

// In this section you declare where to find the dependencies of your project
repositories {
Expand Down

0 comments on commit fc5628f

Please sign in to comment.