diff --git a/build.gradle b/build.gradle index d1e13e739ee95..d35a5898de7d0 100644 --- a/build.gradle +++ b/build.gradle @@ -737,7 +737,6 @@ tasks.register('checkCompatibility', CheckCompatibilityTask) { def generateVersionProperties = tasks.register("generateVersionProperties", WriteProperties) { destinationFile = file("${buildDir}/version.properties") comment = 'Generated version properties' - // properties(props) def libsTomlFile = file("gradle/libs.versions.toml") def propertiesFile = file("${buildDir}/versions.properties") diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle index 0f62b0124d3ed..43a62ca42c39b 100644 --- a/buildSrc/build.gradle +++ b/buildSrc/build.gradle @@ -60,29 +60,6 @@ if (project == rootProject) { Properties props = VersionPropertiesLoader.loadBuildSrcVersion(project.file('../gradle/libs.versions.toml')) version = props.getProperty("opensearch") -//def generateVersionProperties = tasks.register("generateVersionProperties", WriteProperties) { -// destinationFile = file("buildSrc/${buildDir}/version.properties") -// comment = 'Generated version properties' -// // properties(props) -// -// def libsTomlFile = file("gradle/libs.versions.toml") -// def propertiesFile = file("buildSrc/${buildDir}/versions.properties") -// -// doLast { -// def properties = org.opensearch.gradle.VersionPropertiesGenerator.generateVersionProperties(libsTomlFile) -// -// propertiesFile.withWriter('UTF-8') { writer -> -// properties.store(writer, "Generated by Gradle") -// } -// -// println "Generated versions.properties at: ${propertiesFile.absolutePath}" -// } -//} -// -//processResources { -// from(generateVersionProperties) -//} - /***************************************************************************** * Java version * *****************************************************************************/ diff --git a/buildSrc/src/main/java/org/opensearch/gradle/VersionPropertiesGenerator.java b/buildSrc/src/main/java/org/opensearch/gradle/VersionPropertiesGenerator.java index 5dd1ba913c8c1..2e68f4f4a5ac7 100644 --- a/buildSrc/src/main/java/org/opensearch/gradle/VersionPropertiesGenerator.java +++ b/buildSrc/src/main/java/org/opensearch/gradle/VersionPropertiesGenerator.java @@ -6,29 +6,6 @@ * compatible open source license. */ -/* - * Licensed to Elasticsearch under one or more contributor - * license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright - * ownership. Elasticsearch licenses this file to you under - * the Apache License, Version 2.0 (the "License"); you may - * not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -/* - * Modifications Copyright OpenSearch Contributors. See - * GitHub history for details. - */ - package org.opensearch.gradle; import java.io.File;