private static Map<String, String> readingEnv(String... envFile) {
        // Find the project root directory and get the environment file path.
        Path envFilePath = getProjectRootDir();
        for (String subPath : envFile) {
            envFilePath = envFilePath.resolve(subPath);
        }

        try {
            return Files.readAllLines(envFilePath).stream()
                .filter(l -> !l.startsWith("#"))
                .map(l -> l.split("=", 2))
                .filter(l -> l.length == 2)
                .collect(Collectors.toMap(l -> l[0], l -> l[1], (older, newer) -> newer));
        } catch (IOException e) {
            throw new IllegalStateException("Reading environment file error, path: " + envFile, e);
        }
    }
ITVersions is a utility class to read the version information from the environment file.
oap-server/server-library/library-integration-test/src/main/java/org/apache/skywalking/oap/server/library/it/ITVersions.java